Deprecated: Use Gradle JVM toolchains functionality:

Plugin class: name.remal.gradle_plugins.plugins.jdk_cross_compilation.JdkCrossCompilationPlugin

plugins {
    id 'name.remal.jdk-cross-compilation' version '1.3.1'
plugins {
    id("name.remal.jdk-cross-compilation") version "1.3.1"


This plugin works only if java plugin is applied.


This plugin helps with searching JDK of targetting version if you want to compile using another version then current Gradle process has been started on.

The plugin searches JDK paths using name.remal.gradle_plugins.plugins.jdk_cross_compilation.JdkInfoProvider. The service are loaded using ServiceLoader mechanism.

Currently the plugin supports these languages:

  • Java
  • Kotlin
  • Groovy