From a7b46f120344b8f26fae0b51f370baf39b59707f Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 27 Aug 2024 09:26:49 +0800 Subject: [PATCH] Constraint foojay-resolver version --- gradle/dependencies.gradle | 1 + settings.gradle | 1 + .../jengelman/gradle/plugins/shadow/ApplicationSpec.groovy | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle index 0d6264cd4..2612c0963 100644 --- a/gradle/dependencies.gradle +++ b/gradle/dependencies.gradle @@ -23,6 +23,7 @@ dependencies { testImplementation 'org.apache.commons:commons-lang3:3.16.0' testImplementation 'com.google.guava:guava:33.3.0-jre' testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.0' + testImplementation 'org.gradle.toolchains:foojay-resolver:0.8.0' testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.11.0' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } diff --git a/settings.gradle b/settings.gradle index 38e2529a5..4cb8436a7 100644 --- a/settings.gradle +++ b/settings.gradle @@ -12,6 +12,7 @@ plugins { dependencyResolutionManagement { repositories { mavenCentral() + gradlePluginPortal() } } diff --git a/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ApplicationSpec.groovy b/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ApplicationSpec.groovy index 00f2c51fc..340d0ef11 100644 --- a/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ApplicationSpec.groovy +++ b/src/test/groovy/com/github/jengelman/gradle/plugins/shadow/ApplicationSpec.groovy @@ -116,8 +116,7 @@ class ApplicationSpec extends PluginSpecification { settingsFile.write """ plugins { - // https://docs.gradle.org/8.0.1/userguide/toolchains.html#sub:download_repositories - id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0") + id 'org.gradle.toolchains.foojay-resolver-convention' } rootProject.name = 'myapp'