From 96e8e9789ba05a591f8b8932b65ff90a5559e552 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 16 Feb 2017 14:21:54 +1000 Subject: 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 --- project/VersionUtil.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'project/VersionUtil.scala') 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 -- cgit v1.2.3