Skip to content

Commit 52d0a5f

Browse files
OLMIS-8160: Fix OSSRH issue
1 parent b57b0cb commit 52d0a5f

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

build.gradle

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -360,21 +360,24 @@ uploadArchives {
360360
repositories {
361361
mavenDeployer {
362362
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
363-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
363+
364+
snapshotRepository(url: "https://central.sonatype.com/repository/maven-snapshots/") {
364365
authentication(userName: ossrhUsername, password: ossrhPassword)
365366
}
366-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
367+
368+
repository(url: "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/") {
367369
authentication(userName: ossrhUsername, password: ossrhPassword)
368370
}
371+
369372
pom.project {
370-
name project.name
371-
packaging 'jar'
372-
description project.description()
373+
name = project.name
374+
packaging = 'jar'
375+
description = project.description
373376
url = 'https://openlmis.org'
374377
licenses {
375378
license {
376-
name 'GNU Affero General Public License, Version 3'
377-
url 'https://www.gnu.org/licenses/agpl-3.0.txt'
379+
name = 'GNU Affero General Public License, Version 3'
380+
url = 'https://www.gnu.org/licenses/agpl-3.0.txt'
378381
}
379382
}
380383
developers {
@@ -387,8 +390,7 @@ uploadArchives {
387390
}
388391
scm {
389392
connection = 'scm:git:git://github.com/OpenLMIS/openlmis-dhis2-integration.git'
390-
developerConnection = 'scm:git:ssh://github.com/OpenLMIS/openlmis-dhis2-integration' +
391-
'.git'
393+
developerConnection = 'scm:git:ssh://github.com/OpenLMIS/openlmis-dhis2-integration.git'
392394
url = 'http://github.com/OpenLMIS/openlmis-dhis2-integration/'
393395
}
394396
}

0 commit comments

Comments
 (0)