This plugin is no longer supported. We recommend using Gradle Toolchains instead
Automatically configures the bootstrap classpath when the requested targetCompatibility
is less than the current Java version, avoiding:
warning: [options] bootstrap class path not set in conjunction with -source 1.7
The plugin supports Java, Groovy joint compilation, and Kotlin. The plugin locates JDKs via either:
- Environment variables
- In the form
JDK1x
wherex
is the major version, for instanceJDK18
for Java 8
- In the form
- Default installation locations for MacOS, Ubuntu and Windows
- Where more than one version of the JDK is available for a given version is available, the highest is used
- The lookup prefers Oracle JDKs, but falls back to OpenJDK (zulu) where possible
- SDKMAN! JDK candidates
- The lookup prefers JDKs with no suffix, then Oracle JDKs then OpenJDK (zulu)
Refer to the Gradle Plugin Portal for instructions on how to apply the plugin.