summaryrefslogtreecommitdiff
path: root/project/VersionUtil.scala
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 /project/VersionUtil.scala
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 'project/VersionUtil.scala')
-rw-r--r--project/VersionUtil.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/project/VersionUtil.scala b/project/VersionUtil.scala
index 7c4909697f..ebc2488345 100644
--- a/project/VersionUtil.scala
+++ b/project/VersionUtil.scala
@@ -1,3 +1,5 @@
+package scala.build
+
import sbt._
import Keys._
import java.util.Properties