diff options
author | Kevin Wright <kevin.wright@bradyplc.com> | 2018-01-26 20:01:29 +0000 |
---|---|---|
committer | Kevin Wright <kevin.wright@bradyplc.com> | 2018-01-26 20:01:29 +0000 |
commit | 4d1bf3ad68b3def3bbdc7ac8c45cb1a72c2c4e09 (patch) | |
tree | 8030fdb3827b494ffa7a78724098708f7c6987aa /build.sbt | |
parent | dbf2a7a68aff4a236acd4efccec5ec9d3eca5a93 (diff) | |
download | magnolia-4d1bf3ad68b3def3bbdc7ac8c45cb1a72c2c4e09.tar.gz magnolia-4d1bf3ad68b3def3bbdc7ac8c45cb1a72c2c4e09.tar.bz2 magnolia-4d1bf3ad68b3def3bbdc7ac8c45cb1a72c2c4e09.zip |
Made it compile under Java 9
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -29,11 +29,21 @@ lazy val tests = project addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.1" cross CrossVersion.full), libraryDependencies ++= Seq( "com.fommil" %% "deriving-macro" % "0.9.0", - "com.fommil" %% "scalaz-deriving" % "0.9.0" + "com.fommil" %% "scalaz-deriving" % "0.9.0", + // These 4 because scalaz-deriving collects dependencies like they were pokémon + // Including XML stuff that got modularised in Java 9... + // which is odd for a library that has nothing whatsoever to do with XML! + "javax.xml.bind" % "jaxb-api" % "2.3.0", + "com.sun.xml.bind" % "jaxb-impl" % "2.3.0", + "org.glassfish.jaxb" % "jaxb-runtime" % "2.3.0", + "javax.activation" % "activation" % "1.1.1" ) ) .dependsOn(examplesJVM) + + + lazy val benchmarks = project .in(file("benchmarks")) .settings(buildSettings: _*) @@ -55,6 +65,8 @@ lazy val buildSettings = Seq( "-Ywarn-inaccessible", "-Ywarn-adapted-args" ), +// javaOptions += "--add-modules=javax.xml.bind", +// javacOptions += "--add-modules=javax.xml.bind", scmInfo := Some( ScmInfo(url("https://github.com/propensive/magnolia"), "scm:git:git@github.com:propensive/magnolia.git") |