Skip to content

Commit 4d84157

Browse files
committed
Workaround bug in Scala runtime reflection on JDK 9
The underlying bug is tracked as scala/scala-dev#304 and blocks our SBT starting on JDK 9. This commit avoids using the empty package in our build definition.
1 parent 17acef8 commit 4d84157

13 files changed

+25
-0
lines changed

build.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
* - to modularize the Scala compiler or library further
3333
*/
3434

35+
import scala.build._
3536
import VersionUtil._
3637

3738
// Scala dependencies:

project/BuildSettings.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24

35
/** This object defines keys that should be visible with an unqualified name in all .sbt files and the command line */

project/GenerateAnyVals.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
/** Code generation of the AnyVal types and their companions. */
24
trait GenerateAnyValReps {
35
self: GenerateAnyVals =>

project/JarJar.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import org.pantsbuild.jarjar
24
import org.pantsbuild.jarjar._
35
import org.pantsbuild.jarjar.util._

project/MiMa.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
// It would be nice to use sbt-mima-plugin here, but the plugin is missing
24
// at least two features we need:
35
// * ability to run MiMa twice, swapping `curr` and `prev`, to detect

project/Osgi.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import aQute.bnd.osgi.Builder
24
import aQute.bnd.osgi.Constants._
35
import java.util.Properties

project/ParserUtil.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import sbt.complete.Parser._
35
import sbt.complete.Parsers._

project/PartestUtil.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import sbt.complete._, Parser._, Parsers._
35

project/Quiet.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import Keys._
35

project/ScalaOptionParser.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import ParserUtil._
24
import sbt._
35
import sbt.complete.Parser._

project/ScalaTool.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import org.apache.commons.lang3.SystemUtils
35
import org.apache.commons.lang3.StringUtils.replaceEach

project/ScriptCommands.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import Keys._
35
import BuildSettings.autoImport._

project/VersionUtil.scala

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package scala.build
2+
13
import sbt._
24
import Keys._
35
import java.util.Properties

0 commit comments

Comments
 (0)