Skip to content

Commit 55292f8

Browse files
committed
Switched publishing to the new Sonatype OSS repository
which required an update of the Gradle Nexus publish-plugin to version 2.0.0.
1 parent fba4619 commit 55292f8

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
id 'signing'
1212
id 'eclipse'
1313
id 'maven-publish'
14-
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
14+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
1515
id 'project-report'
1616
// id 'jacoco'
1717
}
@@ -28,9 +28,9 @@ wrapper {
2828

2929
def artifactName = 'javapos-controls'
3030
group = 'org.javapos'
31-
def uposVersion = '1.15' // if this version is going to be changed, first add "-SNAPSHOT"
32-
// to the 'version' variable below for publishing to MavenCentral's Snapshot repo first as test
33-
version="${uposVersion}.0" // the last part after dot is the build/release version
31+
def uposVersion = '1.15' // if this version is going to be changed, first add "-SNAPSHOT" to the
32+
// 'version' variable below for publishing to MavenCentral's Snapshot repo first as test
33+
version="${uposVersion}.1-SNAPSHOT" // the last part after dot is the build/release version
3434

3535
// dependency versions
3636
def javaposContractsVersion = "$uposVersion.0"
@@ -119,7 +119,10 @@ sourcesJar {
119119

120120
nexusPublishing {
121121
repositories {
122-
sonatype()
122+
sonatype {
123+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
124+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
125+
}
123126
}
124127
}
125128

0 commit comments

Comments
 (0)