From 8296d7d84ac139baab868f80bba47c93710d0164 Mon Sep 17 00:00:00 2001 From: Philipp Schirmer Date: Fri, 23 Feb 2024 19:28:03 +0100 Subject: [PATCH] Use new Sonatype host by default (#41) --- .../src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index 27e663f..09637a3 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -233,10 +233,6 @@ class SonatypePlugin : Plugin { apply(plugin = "signing") apply(plugin = "de.marcphilipp.nexus-publish") - repositories { - maven(url = "https://oss.sonatype.org/content/repositories/snapshots") - } - val javadocJar by tasks.creating(Jar::class) { archiveClassifier.set("javadoc") from(tasks.findByName("javadoc") ?: tasks.findByName("dokka")) @@ -258,8 +254,8 @@ class SonatypePlugin : Plugin { configure { // create default repository called 'nexus' and set the corresponding default urls repositories.create("nexus") { - nexusUrl.set(URI.create("https://oss.sonatype.org/service/local/")) - snapshotRepositoryUrl.set(URI.create("https://oss.sonatype.org/content/repositories/snapshots/")) + nexusUrl.set(URI.create("https://s01.oss.sonatype.org/service/local/")) + snapshotRepositoryUrl.set(URI.create("https://s01.oss.sonatype.org/content/repositories/snapshots/")) } }