Skip to content

Commit 81cdce1

Browse files
build: try new Maven Central
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 173a25f commit 81cdce1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ publish {
529529

530530
publishing {
531531
publications {
532-
create("mavenJava", MavenPublication) {
532+
mavenJava(MavenPublication) {
533533
artifactId = 'jsqlparser'
534534

535535
from components.java
@@ -584,8 +584,8 @@ publishing {
584584
repositories {
585585
maven {
586586
name = "ossrh"
587-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
588-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
587+
def releasesRepoUrl = "https://central.sonatype.com/repository/maven-releases"
588+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
589589
url(version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl)
590590

591591
credentials {

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@
135135
<distributionManagement>
136136
<repository>
137137
<id>sonatype-nexus-staging</id>
138-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
138+
<url>https://central.sonatype.com/repository/maven-releases</url>
139139
</repository>
140140
<snapshotRepository>
141-
<id>sonatype-nexus-snapshots</id>
142-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
141+
<id>sonatype-nexus-snapshots</id>
142+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
143143
<releases><enabled>false</enabled></releases>
144144
<snapshots><enabled>true</enabled></snapshots>
145145
</snapshotRepository>

0 commit comments

Comments
 (0)