From 4d4f36659d2e94bbe062fa36ba6dc7bac3d06545 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Tue, 20 Sep 2022 14:02:17 -0600 Subject: [PATCH] Use mavenCentral instead of the gradlePluginPortal, since the latter can refer to jcenter which is now shutdown --- build.gradle | 1 + gradle/any/gretty.gradle | 7 ++++--- gradle/root/publishing.gradle | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index ec2cf5362b..46d367fccd 100644 --- a/build.gradle +++ b/build.gradle @@ -9,6 +9,7 @@ buildscript { // The buildscript {} block is odd: even though we applied dependencies.gradle above, the repositories therein // do not get included here. Instead, we must explicitly define the repos again. Yay for duplication. repositories { + mavenCentral() gradlePluginPortal() exclusiveContent { forRepository { diff --git a/gradle/any/gretty.gradle b/gradle/any/gretty.gradle index b1b2f67d1d..f14c381668 100644 --- a/gradle/any/gretty.gradle +++ b/gradle/any/gretty.gradle @@ -5,6 +5,7 @@ buildscript { apply from: "$rootDir/gradle/any/shared-mvn-coords.gradle" repositories { + mavenCentral() gradlePluginPortal() } dependencies { @@ -16,14 +17,14 @@ apply from: "$rootDir/gradle/any/properties.gradle" apply plugin: 'org.gretty' apply plugin: 'jacoco' -// when applying the gretty buildScript to a project, make sure that project has access to the gradlePluginPortal -// which is where the gretty tomcat runners live +// when applying the gretty buildScript to a project, make sure that project has access the gretty tomcat runners repositories { exclusiveContent { forRepository { + mavenCentral() gradlePluginPortal() } - // only look for unidata gretty related artifacts from the gradlePluginPortal + // only look for unidata gretty related artifacts from the above repos filter { includeGroup 'org.gretty' } diff --git a/gradle/root/publishing.gradle b/gradle/root/publishing.gradle index 45001cdd3e..7cfee766a9 100644 --- a/gradle/root/publishing.gradle +++ b/gradle/root/publishing.gradle @@ -6,6 +6,7 @@ buildscript { // The buildscript {} block is odd: even though we applied dependencies.gradle above, the repositories therein // do not get included here. Instead, we must explicitly define the repos again. Yay for duplication. repositories { + mavenCentral() gradlePluginPortal() exclusiveContent { forRepository {