chali / gradle-java-cross-compile-plugin

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle Java Cross-Compile Plugin

Support Status Gradle Plugin Portal Maven Central Build 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 (zulu) 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.

License:Apache License 2.0


Languages

Language:Kotlin 62.7%Language:Groovy 37.3%