Skip to content

Commit

Permalink
fix: Unable to download required toolchain on MAC (#1859)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
joc-a authored Sep 18, 2023
1 parent fe85d93 commit 5ce2d5a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}

0 comments on commit 5ce2d5a

Please sign in to comment.