File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- " [0-9]+.[0-9]+.[0-9]+"
7
- workflow_dispatch :
7
+ workflow_dispatch : {} # support manual runs
8
8
9
9
jobs :
10
10
publish :
23
23
distribution : temurin
24
24
java-version : 11
25
25
check-latest : true
26
- - name : Build
26
+ - name : Publish
27
27
uses : gradle/gradle-build-action@v2
28
28
with :
29
29
arguments : |
34
34
-Dorg.gradle.internal.network.retry.max.attempts=1
35
35
-Dorg.gradle.internal.publish.checksums.insecure=true
36
36
env :
37
- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
38
- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
39
- PGP_KEY : ${{ secrets.PGP_KEY }}
40
- PGP_PASSWORD : ${{ secrets.PGP_PASSWORD }}
41
- GRADLE_PORTAL_PUBLISH_KEY : ${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }}
42
- GRADLE_PORTAL_PUBLISH_SECRET : ${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }}
37
+ OSSRH_USERNAME : ${{ secrets.SONATYPE_USER }}
38
+ OSSRH_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
39
+ PGP_KEY : ${{ secrets.GPG_KEY_ARMORED }}
40
+ PGP_PASSWORD : ${{ secrets.GPG_PASSPHRASE }}
41
+ GRADLE_PORTAL_PUBLISH_KEY : ${{ secrets.GRADLE_PUBLISH_KEY }}
42
+ GRADLE_PORTAL_PUBLISH_SECRET : ${{ secrets.GRADLE_PUBLISH_SECRET }}
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ fun Project.configurePublishing() {
56
56
configure<NexusPublishExtension > {
57
57
repositories {
58
58
sonatype {
59
+ nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
60
+ snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
59
61
username.set(Remote .username)
60
62
password.set(Remote .password)
61
63
}
@@ -72,7 +74,6 @@ fun Project.configurePublishing() {
72
74
73
75
configure<SigningExtension > {
74
76
useInMemoryPgpKeys(Pgp .key, Pgp .password)
75
-
76
77
the<PublishingExtension >().publications.withType<MavenPublication > {
77
78
standardPom()
78
79
sign(this )
Original file line number Diff line number Diff line change 2
2
# plugins
3
3
animalsniffer = " 1.5.4"
4
4
kotlin = " 1.6.20"
5
- pluginPublish = " 1.0 .0"
5
+ pluginPublish = " 1.1 .0"
6
6
publishing = " 0.22.0"
7
7
spotless = " 6.11.0"
8
8
You can’t perform that action at this time.
0 commit comments