Skip to content

Commit be101f1

Browse files
Merge pull request #51 from xenit-eu/central-portal-publishing
[ACC-2157] Publish using the Sonatype Central Portal Publisher API
2 parents 181e036 + 727852e commit be101f1

File tree

3 files changed

+4
-25
lines changed

3 files changed

+4
-25
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55

66
jobs:
77
build:
8-
name: "build"
98
runs-on: ubuntu-latest
109
steps:
1110
- uses: actions/checkout@v4
@@ -25,7 +24,7 @@ jobs:
2524
if: ${{ github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/tags/') }}
2625
runs-on: ubuntu-latest
2726
steps:
28-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27+
- uses: actions/checkout@v4
2928
with:
3029
fetch-depth: 0
3130
- uses: actions/setup-java@v4
@@ -36,6 +35,6 @@ jobs:
3635
env:
3736
SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
3837
SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
39-
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
40-
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
38+
ORG_GRADLE_PROJECT_mavenCentralPublishUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
39+
ORG_GRADLE_PROJECT_mavenCentralPublishPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
4140
run: ./gradlew publish

gradle/publish.gradle

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,6 @@ publishing {
3232
}
3333
}
3434
}
35-
36-
repositories {
37-
if ("${project.version}".endsWith('-SNAPSHOT')) {
38-
sonatypeSnapshots {
39-
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
40-
credentials {
41-
username = project.findProperty('sonatype_username')
42-
password = project.findProperty('sonatype_password')
43-
}
44-
}
45-
} else {
46-
sonatypeMavenCentral {
47-
url = "https://s01.oss.sonatype.org/service/local/"
48-
credentials {
49-
username = project.findProperty('sonatype_username')
50-
password = project.findProperty('sonatype_password')
51-
}
52-
}
53-
}
54-
}
5535
}
5636

5737
pluginManager.withPlugin('java-library') {

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "eu.xenit.enterprise-conventions.oss" version "0.5.2"
2+
id "eu.xenit.enterprise-conventions.oss" version "0.6.1"
33
id 'org.ajoberstar.reckon.settings' version '0.19.2'
44
}
55

0 commit comments

Comments
 (0)