mirror of
https://github.com/sbt/sbt.git
synced 2026-08-30 17:54:25 +02:00
Normally scripted tests are forked using the JVM that is running sbt.
If set `scripted / javaHome`, forked using it.
```
scripted / javaHome := Some(file("/path/to/jdk-x.y.z"))
```
Or use `java++` command before scripted.
```
sbt> java++ 11!
sbt> scripted
```
591 B
591 B
Improvements
- Make javaHome that forks scripted tests configurable. #6673 by @kxbmap
- Normally scripted tests are forked using the JVM that is running sbt. If set
scripted / javaHome, forked using it. - Or use
java++command before scripted.
- Normally scripted tests are forked using the JVM that is running sbt. If set
Fixes with compatibility implications
- Change type of
scriptedRuntask key fromTaskKey[java.lang.reflect.Method]toTaskKey[sbt.ScriptedRun]sbt.ScriptedRunis a new interface for hiding substance of scripted invocation.