Fix gradle warning (#7956)

> Java toolchain auto-provisioning enabled, but no java toolchain
repositories declared by the build. Will rely on the built-in
repository. This behaviour has been deprecated and is scheduled to be
removed in Gradle 8.0. In order to declare a repository for java
toolchains, you must edit your settings script and add one via the
toolchainManagement block. See
https://docs.gradle.org/7.6.1/userguide/toolchains.html#sec:provisioning
for more details.

The sample at linked page mentions `repository("adoptium")` which looks
like what we would like to use, but apparently this is just a sample how
configuration might look like, `AdoptiumResolver` doesn't really exist.
The one that exists is https://github.com/gradle/foojay-toolchains
This commit is contained in:
Lauri Tulmin 2023-03-03 09:30:39 +02:00 committed by GitHub
parent 38f8a9c8a9
commit 1271a100ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -4,3 +4,7 @@ pluginManagement {
id("io.github.gradle-nexus.publish-plugin") version "1.2.0"
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}

View File

@ -15,6 +15,7 @@ pluginManagement {
plugins {
id("com.gradle.enterprise") version "3.12.2"
id("com.gradle.common-custom-user-data-gradle-plugin") version "1.8.2"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}
dependencyResolutionManagement {