Search Gradle plugins

org.gradle.toolchains.foojay-resolver-convention

Owner: Gradle

Toolchains resolver using the Foojay Disco API for resolving Java runtimes. Automatically configures toolchain management.

https://github.com/gradle/foojay-toolchains

Sources: https://github.com/gradle/disco-toolchains

Version 1.0.0 (latest)

Created 19 May 2025.

- Plugin now compiled with Java 17, meaning it requires that version or higher to run - Removed direct references to deprecated JvmVendorSpec.IBM_SEMERU, to prepare for Gradle 9 compatibility. - Implementation dependencies are now shaded to reduce potential conflicts with other plugins

Add this plugin to your build using the plugins DSL:

plugins {
  id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:1.0.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("org.gradle.toolchains.foojay-resolver-convention")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:1.0.0")
      }
    }
    
    apply(plugin = "org.gradle.toolchains.foojay-resolver-convention")
  • Applying plugins to all subprojects .