File tree Expand file tree Collapse file tree 2 files changed +42
-13
lines changed
Expand file tree Collapse file tree 2 files changed +42
-13
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,15 @@ jobs:
2222
2323 - run : env | grep "GIT"
2424
25- - name : Publish package
26- run : ./gradlew --no-parallel publishToSonatype closeAndReleaseSonatypeStagingRepository
25+ - name : Publish local
26+ run : ./gradlew publish
2727 env :
28- ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
29- ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_PASSWORD }}
3028 ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
3129 ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
30+
31+ - name : Publish package
32+ run : ./gradlew jreleaserDeploy
33+ env :
34+ JRELEASER_MAVENCENTRAL_USERNAME : ${{ secrets.OSSRH_USERNAME }}
35+ JRELEASER_MAVENCENTRAL_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
36+ JRELEASER_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,15 +2,8 @@ plugins {
22 id " io.freefair.git-version"
33 id " io.freefair.lombok" apply false
44 id " io.freefair.javadocs" apply false
5- id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
6- }
7-
8- nexusPublishing {
9- repositories {
10- sonatype {
11- stagingProfileId = ' 7c1c53f8a02656'
12- }
13- }
5+ id " base"
6+ id ' org.jreleaser' version ' 1.20.0'
147}
158
169allprojects {
@@ -130,7 +123,38 @@ allprojects {
130123 }
131124 }
132125 }
126+
127+ repositories {
128+ maven {
129+ name = " mavenCentralStaging"
130+ url = rootProject. layout. buildDirectory. dir(' staging-deploy' )
131+ }
132+ }
133133 }
134134
135135 }
136136}
137+
138+ jreleaser {
139+ project {
140+ license = ' MIT'
141+ inceptionYear = ' 2021'
142+ }
143+ signing {
144+ active = ' NEVER'
145+ }
146+ deploy {
147+ maven {
148+ mavenCentral {
149+ sonatype {
150+ active = ' RELEASE'
151+ namespace = " de.larsgrefer"
152+ url = ' https://central.sonatype.com/api/v1/publisher'
153+ sign = false // Already done by Gradle
154+ checksums = false // Already done by Gradle
155+ stagingRepository(' build/staging-deploy' )
156+ }
157+ }
158+ }
159+ }
160+ }
You can’t perform that action at this time.
0 commit comments