Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 1.94 KB

File metadata and controls

27 lines (19 loc) · 1.94 KB

Gradle Java Cross-Compile Plugin

Support Status Gradle Plugin Portal Maven Central Build Apache 2.0

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 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.