-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
100 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ class Hello6Spec extends AnyFlatSpec { | |
StandardOpenOption.APPEND | ||
) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
plugin/src/sbt-test/sbt-native-image/agent-test/project/plugins.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-native-image" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-native-image" % sys.props("plugin.version")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
addSbtPlugin("org.scalameta" % "sbt-native-image" % sys.props("plugin.version")) | ||
addSbtPlugin("org.scalameta" % "sbt-native-image" % sys.props("plugin.version")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ class Hello4Spec extends AnyFlatSpec { | |
StandardOpenOption.APPEND | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 17 additions & 19 deletions
36
plugin/src/sbt-test/sbt-native-image/cross-build-test/build.sbt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
lazy val example = project | ||
.settings( | ||
crossScalaVersions := List( | ||
"2.11.10", | ||
"2.12.10", | ||
"2.12.12", | ||
"2.13.1", | ||
"2.13.3" | ||
), | ||
crossScalaVersions := | ||
List("2.11.10", "2.12.10", "2.12.12", "2.13.1", "2.13.3"), | ||
mainClass.in(Compile) := Some("example.Hello5"), | ||
nativeImageTestOptions ++= Seq( | ||
"--initialize-at-build-time=scala.collection.immutable.VM" | ||
), | ||
nativeImageTestOptions ++= | ||
Seq("--initialize-at-build-time=scala.collection.immutable.VM"), | ||
mainClass.in(Test) := Some("org.scalatest.tools.Runner"), | ||
nativeImageTestRunOptions ++= Seq("-o", "-R", classDirectory.in(Test).value.absolutePath), | ||
nativeImageCommand := List( | ||
sys.env.getOrElse( | ||
"NATIVE_IMAGE_COMMAND", | ||
"missing environment variable 'NATIVE_IMAGE_COMMAND'. " + | ||
"To fix this problem, manually install GraalVM native-image and update the environment " + | ||
"variable to point to the absolute path of this binary." | ||
) | ||
), | ||
nativeImageTestRunOptions ++= | ||
Seq("-o", "-R", classDirectory.in(Test).value.absolutePath), | ||
nativeImageCommand := | ||
List( | ||
sys | ||
.env | ||
.getOrElse( | ||
"NATIVE_IMAGE_COMMAND", | ||
"missing environment variable 'NATIVE_IMAGE_COMMAND'. " + | ||
"To fix this problem, manually install GraalVM native-image and update the environment " + | ||
"variable to point to the absolute path of this binary." | ||
) | ||
), | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.14" % "test" | ||
) | ||
.enablePlugins(NativeImagePlugin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,4 @@ class Hello5Spec extends AnyFlatSpec { | |
StandardOpenOption.APPEND | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters