Skip to content

Commit 90c5fb3

Browse files
committed
Move from Nexus OSSRH to Central Portal
1 parent d2fbc4a commit 90c5fb3

6 files changed

Lines changed: 5 additions & 33 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish package to the Maven Central Repository
33
on:
44
release:
55
types: [created]
6+
workflow_dispatch: # Allow manual trigger as well (for testing only)
67

78
jobs:
89
publish:
@@ -23,4 +24,4 @@ jobs:
2324
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
2425
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY }}
2526
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY_PASSWORD }}
26-
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info
27+
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info && curl -X POST https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/ee.bitweb

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Library providing basic generic functionality required by any HTTP web service.
1010

1111
```
1212
// https://mvnrepository.com/artifact/ee.bitweb/spring-core
13-
implementation group: 'ee.bitweb', name: 'spring-core', version: '4.0.1'
13+
implementation group: 'ee.bitweb', name: 'spring-core', version: '4.0.2'
1414
```
1515

1616
Review available versions in [Maven Central](https://mvnrepository.com/artifact/ee.bitweb/spring-core).

deploy/getVersion.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

deploy/injectGradleCredentials.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

deploy/setSnapshotVersion.sh

Lines changed: 0 additions & 15 deletions
This file was deleted.

library.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ nexusPublishing {
7070
repositories {
7171
if (project.hasProperty('mavenCentralUsername') & project.hasProperty('mavenCentralPassword')) {
7272
sonatype {
73-
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
74-
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots"))
73+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
74+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
7575
username = project.mavenCentralUsername
7676
password = project.mavenCentralPassword
7777
}

0 commit comments

Comments
 (0)