forked from apache/lucene
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjvms.txt
More file actions
18 lines (12 loc) · 693 Bytes
/
Copy pathjvms.txt
File metadata and controls
18 lines (12 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Compiling and testing against different JVMs
============================================
By default tests are executed with the same Java Gradle is using internally.
To run tests against a different Java version, define a property called
"runtime.java.home" or define an environment variable "RUNTIME_JAVA_HOME"
pointing at the JDK installation folder.
If property is being used, it can be a system property (-D...) or a project
property (-P...).
Example:
gradlew test -p lucene/test-framework --tests TestJvmInfo -Dtests.verbose=true -Druntime.java.home=/jvms/jdk14
Note that an alternative JVM can also be made the "default" setting
by adding it to (project-local) gradle.properties.