Skip to content

Commit

Permalink
Use new Sonatype host by default
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Feb 23, 2024
1 parent b3f0e6b commit 80a267d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ class SonatypePlugin : Plugin<Project> {
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"))
Expand All @@ -258,8 +254,8 @@ class SonatypePlugin : Plugin<Project> {
configure<NexusPublishExtension> {
// 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/"))
}
}

Expand Down

0 comments on commit 80a267d

Please sign in to comment.