Skip to content

Commit 8c861e9

Browse files
Fix Maven Central Snapshot auth
1 parent b444bae commit 8c861e9

6 files changed

Lines changed: 6 additions & 18 deletions

File tree

buttplug4j.connectors.javax.websocket.client/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ publishing {
6060
}
6161
maven {
6262
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
63+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6664

6765
credentials {
6866
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

buttplug4j.connectors.javax.websocket.common/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,7 @@ publishing {
5757
}
5858
maven {
5959
name = "ossrh"
60-
url = version.contains("-SNAPSHOT") ?
61-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
62-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
60+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6361

6462
credentials {
6563
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

buttplug4j.connectors.javax.websocket.server/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ publishing {
6060
}
6161
maven {
6262
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
63+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6664

6765
credentials {
6866
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

buttplug4j.connectors.jetty.websocket.client/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ publishing {
6161
}
6262
maven {
6363
name = "ossrh"
64-
url = version.contains("-SNAPSHOT") ?
65-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
66-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
64+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6765

6866
credentials {
6967
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

buttplug4j.utils.mdns/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ publishing {
6060
}
6161
maven {
6262
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
63+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6664

6765
credentials {
6866
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

buttplug4j/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ publishing {
6060
}
6161
maven {
6262
name = "ossrh"
63-
url = version.contains("-SNAPSHOT") ?
64-
uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") :
65-
uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
63+
url = "https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC"
6664

6765
credentials {
6866
username = project.findProperty("maven.user") ?: System.getenv("MAVEN_USER")

0 commit comments

Comments
 (0)