Skip to content

Commit 188c005

Browse files
authored
Merge pull request #305 from kit-data-manager/development
New release candidate: fix publishing to sonatype
2 parents 22a8c33 + dae2871 commit 188c005

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ plugins {
1313
// Publishing of JAR to Nexus instances (e.g., OSSRH)
1414
// https://github.com/gradle-nexus/publish-plugin
1515
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
16-
id "io.freefair.maven-publish-java" version "9.0.0"
16+
id "io.freefair.maven-publish-java" version "9.1.0"
1717
}
1818

1919
group = 'edu.kit.datamanager'
@@ -58,7 +58,7 @@ dependencies {
5858
// read from and write to zip files
5959
implementation group: 'net.lingala.zip4j', name: 'zip4j', version: '2.11.5'
6060
// compare json documents in tests
61-
implementation 'com.github.fslev:json-compare:7.1'
61+
implementation 'com.github.fslev:json-compare:7.2'
6262
// url validator
6363
implementation group: 'commons-validator', name: 'commons-validator', version: '1.10.0'
6464
// logging

gradle/profile-release.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,11 @@ javadoc {
4949
//see https://github.com/gradle-nexus/publish-plugin
5050
nexusPublishing {
5151
repositories {
52-
//select sonatype repository as publication destination
53-
//uses pre-configured URLs, e.g. https://oss.sonatype.org/
54-
sonatype()
55-
//for alternate publication desination define nexusUrl and snapshotRepositoryUrl
56-
//also relevant for users registered in Sonatype after 24 Feb 2021
57-
//sonatype {
58-
// nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
59-
// snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
60-
//}
52+
//select sonatype repository as publication destination
53+
sonatype {
54+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
55+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
56+
}
6157
}
6258
}
6359

0 commit comments

Comments
 (0)