From 5ce2d5a679905c7c979158fb3b5b76aacf038bb8 Mon Sep 17 00:00:00 2001 From: Jocelyne <38375996+joc-a@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:00:33 +0200 Subject: [PATCH] fix: Unable to download required toolchain on MAC (#1859) For devices that don't already have JVM 8 installed, the project failed to find it and use it. Foojay Toolchains Plugin resolves this by providing a repository for downloading JVMs. --- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle.kts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 41dfb87909..db9a6b825d 100755 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/settings.gradle.kts b/settings.gradle.kts index 4cc3bb37d6..8b8baaa44f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -19,3 +19,17 @@ pluginManagement { id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10" } } + +plugins { + id("org.gradle.toolchains.foojay-resolver") version "0.7.0" +} + +toolchainManagement { + jvm { + javaRepositories { + repository("foojay") { + resolverClass.set(org.gradle.toolchains.foojay.FoojayToolchainResolver::class.java) + } + } + } +}