File tree Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Expand file tree Collapse file tree 2 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 27
27
- name : Release
28
28
run : ./gradlew --info -Prelease.useLastTag=true final
29
29
env :
30
- NETFLIX_OSS_SONATYPE_USERNAME : ${{ secrets.ORG_SONATYPE_USERNAME }}
31
- NETFLIX_OSS_SONATYPE_PASSWORD : ${{ secrets.ORG_SONATYPE_PASSWORD }}
32
- NETFLIX_OSS_SIGNING_KEY : ${{ secrets.ORG_SIGNING_KEY }}
33
- NETFLIX_OSS_SIGNING_PASSWORD : ${{ secrets.ORG_SIGNING_PASSWORD }}
34
- NETFLIX_OSS_REPO_USERNAME : ${{ secrets.ORG_USERNAME }}
35
- NETFLIX_OSS_REPO_PASSWORD : ${{ secrets.ORG_OSS_PASSWORD }}
30
+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
31
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
32
+ SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
33
+ SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
34
+ SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ plugins {
9
9
id(" nebula.contacts" ) version " 6.0.0"
10
10
id(" nebula.info-scm" ) version " 11.3.3"
11
11
id(" tylerthrailkill.nebula-mit-license" ) version " 0.0.3"
12
+ id(" io.github.gradle-nexus.publish-plugin" ) version " 1.1.0"
12
13
13
14
jacoco
14
15
`java- library`
15
16
`maven- publish`
16
17
`project- report`
18
+ signing
17
19
}
18
20
19
21
java {
@@ -25,6 +27,24 @@ repositories {
25
27
mavenCentral()
26
28
}
27
29
30
+ nexusPublishing {
31
+ repositories {
32
+ sonatype {
33
+ nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
34
+ username.set(System .getenv(" SONATYPE_USERNAME" ))
35
+ password.set(System .getenv(" SONATYPE_PASSWORD" ))
36
+ }
37
+ }
38
+ }
39
+
40
+ signing {
41
+ useInMemoryPgpKeys(
42
+ System .getenv(" SIGNING_KEY_ID" ),
43
+ System .getenv(" SIGNING_KEY" ),
44
+ System .getenv(" SIGNING_KEY_PASSWORD" ))
45
+ sign(publishing.publications[" nebula" ])
46
+ }
47
+
28
48
contacts {
29
49
addPerson(
" [email protected] " , delegateClosureOf<
Contact > {
30
50
github = " jakubmalek"
You can’t perform that action at this time.
0 commit comments