summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2017-02-16 14:21:54 +1000
committerJason Zaugg <jzaugg@gmail.com>2017-02-16 21:58:40 +1000
commit96e8e9789ba05a591f8b8932b65ff90a5559e552 (patch)
treeeddc74d1844021d7acbf96600bf39e4e38a18dde /build.sbt
parentfe2d9a431ada04f18197e2bad5cbaa94667ef0b3 (diff)
downloadscala-96e8e9789ba05a591f8b8932b65ff90a5559e552.tar.gz
scala-96e8e9789ba05a591f8b8932b65ff90a5559e552.tar.bz2
scala-96e8e9789ba05a591f8b8932b65ff90a5559e552.zip
Workaround bug in Scala runtime reflection on JDK 9
The underlying bug is tracked as https://github.com/scala/scala-dev/issues/304 and blocks our SBT starting on JDK 9. This commit avoids using the empty package in our build definition. After this change, I needed to manually clean the class files from the build definition as follows, which might indicate a bug in SBT. $ sbt ... /Users/jz/code/scala-java9-ci/build.sbt:0: warning: imported `BuildSettings' is permanently hidden by definition of object BuildSettings import ..., _root_.scala.build.BuildSettings, ... ^C % rm -rf project/target/scala-2.10/sbt-0.13/classes/ % sbt # okay second time
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index 6bb9c10166..6a74107de5 100644
--- a/build.sbt
+++ b/build.sbt
@@ -32,6 +32,7 @@
* - to modularize the Scala compiler or library further
*/
+import scala.build._
import VersionUtil._
// Scala dependencies: