Skip to content

evantill/gradle-java-cross-compile-plugin

 
 

Repository files navigation

Gradle Java Cross-Compile Plugin

Support Status Build Status Coverage Status Gitter Apache 2.0

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 where x is the major version, for instance JDK18 for Java 8
  • 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 where possible
  • SDKMAN! JDK candidates
    • The lookup prefers JDKs with no suffix, then Oracle JDKs then OpenJDK (zulu)

Quick Start

Refer to the Gradle Plugin Portal for instructions on how to apply the plugin.

About

Automatic configuration of bootstrap classpath for Java, Groovy and Kotlin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 74.8%
  • Groovy 16.0%
  • Shell 9.2%