spring-framework/gradle
Sam Brannen 8f02e1088d Support alternate JDK versions in Gradle build
This commit adds support for the following two JVM system properties
that control the Gradle build for alternative JDKs (i.e., a JDK other
than the one used to launch the Gradle process).

- customJavaHome: absolute path to the alternate JDK installation to
  use to compile Java code and execute tests. Setting this system
  property causes Groovy 3.0 RC3 to be used instead of 2.5.x. This
  system property is also used in spring-oxm.gradle to determine
  whether JiBX is supported.

- customJavaSourceVersion: Java version supplied to the `--release`
  command line flag to control the Java source and target compatibility
  version. Supported versions include 9 or higher. Do not set this
  system property if Java 8 should be used.

Examples:

./gradlew -DcustomJavaHome=/opt/java/jdk-14 test

./gradlew --no-build-cache -DcustomJavaHome=/opt/java/jdk-14 test

./gradlew -DcustomJavaHome=/opt/java/jdk-14 -DcustomJavaSourceVersion=14 test

See gh-24474
2020-02-06 15:24:19 +01:00
..
wrapper Upgrade to Gradle 5.6.4 2019-11-03 15:04:58 +01:00
build-cache-settings.gradle Enable reading from the remote build cache for all 2019-11-29 17:58:09 +01:00
build-scan-user-data.gradle Support alternate JDK versions in Gradle build 2020-02-06 15:24:19 +01:00
custom-java-home.gradle Support alternate JDK versions in Gradle build 2020-02-06 15:24:19 +01:00
docs.gradle Asciidoctor Warnings Are Fatal 2020-01-24 15:51:59 -06:00
ide.gradle Replace propdeps plugin with custom plugin 2019-08-13 18:19:37 +02:00
publications.gradle Fix missing project information in generated POMS 2019-09-30 10:22:44 +02:00
spring-module.gradle Polish test fixture publication skipping config 2020-01-03 14:56:13 +01:00