diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2017-02-16 14:21:54 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2017-02-16 21:58:40 +1000 |
commit | 96e8e9789ba05a591f8b8932b65ff90a5559e552 (patch) | |
tree | eddc74d1844021d7acbf96600bf39e4e38a18dde /project/Osgi.scala | |
parent | fe2d9a431ada04f18197e2bad5cbaa94667ef0b3 (diff) | |
download | scala-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/Osgi.scala')
-rw-r--r-- | project/Osgi.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/project/Osgi.scala b/project/Osgi.scala index 082fd91ed1..b05751958a 100644 --- a/project/Osgi.scala +++ b/project/Osgi.scala @@ -1,3 +1,5 @@ +package scala.build + import aQute.bnd.osgi.Builder import aQute.bnd.osgi.Constants._ import java.util.Properties |