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:
22
22
23
23
- run : env | grep "GIT"
24
24
25
- - name : Publish package
26
- run : ./gradlew --no-parallel publishToSonatype closeAndReleaseSonatypeStagingRepository
25
+ - name : Publish local
26
+ run : ./gradlew publish
27
27
env :
28
- ORG_GRADLE_PROJECT_sonatypeUsername : ${{ secrets.OSSRH_USERNAME }}
29
- ORG_GRADLE_PROJECT_sonatypePassword : ${{ secrets.OSSRH_PASSWORD }}
30
28
ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
31
29
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 {
2
2
id " io.freefair.git-version"
3
3
id " io.freefair.lombok" apply false
4
4
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'
14
7
}
15
8
16
9
allprojects {
@@ -130,7 +123,38 @@ allprojects {
130
123
}
131
124
}
132
125
}
126
+
127
+ repositories {
128
+ maven {
129
+ name = " mavenCentralStaging"
130
+ url = rootProject. layout. buildDirectory. dir(' staging-deploy' )
131
+ }
132
+ }
133
133
}
134
134
135
135
}
136
136
}
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