-
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
5 changed files
with
19 additions
and
24 deletions.
There are no files selected for viewing
37 changes: 17 additions & 20 deletions
37
plugin/src/sbt-test/sbt-native-image/agent-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,21 +1,18 @@ | ||
lazy val example = project | ||
.settings( | ||
scalaVersion := "2.12.18", | ||
Compile / mainClass := Some("example.Hello6"), | ||
nativeImageTestOptions ++= Seq( | ||
s"-H:ReflectionConfigurationFiles=${target.value / "native-image-configs" / "reflect-config.json"}", | ||
"--initialize-at-build-time=scala.collection.immutable.VM", | ||
), | ||
Test / mainClass := Some("org.scalatest.tools.Runner"), | ||
nativeImageTestRunOptions ++= Seq("-o", "-R", (Test / classDirectory).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.16" % Test | ||
scalaVersion := "2.12.18" | ||
Compile / mainClass := Some("example.Hello6") | ||
nativeImageTestOptions ++= Seq( | ||
s"-H:ReflectionConfigurationFiles=${target.value / "native-image-configs" / "reflect-config.json"}", | ||
"--initialize-at-build-time=scala.collection.immutable.VM", | ||
) | ||
Test / mainClass := Some("org.scalatest.tools.Runner") | ||
nativeImageTestRunOptions ++= Seq("-o", "-R", (Test / classDirectory).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." | ||
) | ||
.enablePlugins(NativeImagePlugin) | ||
) | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.16" % Test | ||
enablePlugins(NativeImagePlugin) |
2 changes: 1 addition & 1 deletion
2
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
1 change: 0 additions & 1 deletion
1
plugin/src/sbt-test/sbt-native-image/cross-build-test/project/build.properties
This file was deleted.
Oops, something went wrong.
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
1 change: 0 additions & 1 deletion
1
plugin/src/sbt-test/sbt-native-image/cross-build/project/build.properties
This file was deleted.
Oops, something went wrong.