File tree Expand file tree Collapse file tree 2 files changed +18
-29
lines changed
Expand file tree Collapse file tree 2 files changed +18
-29
lines changed Original file line number Diff line number Diff line change 2121 env :
2222 USERNAME : ${{ github.actor }}
2323 TOKEN : ${{ secrets.GITHUB_TOKEN }}
24- SIGNING_KEY : ${{ secrets.gpg_private_key }}
25- SIGNING_PASSPHRASE : ${{ secrets.gpg_passphrase }}
26- MAVEN_USERNAME : ${{ secrets.nexus_username }}
27- MAVEN_PASSWORD : ${{ secrets.nexus_password }}
24+ SIGNING_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
25+ SIGNING_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
26+ MAVEN_USERNAME : ${{ secrets.NEXUS_USERNAME }}
27+ MAVEN_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
Original file line number Diff line number Diff line change @@ -27,15 +27,11 @@ jar {
2727 }
2828}
2929
30- /* signing {
31- def signingKey = findProperty("signingKey")
32- def signingPassword = findProperty("signingPassword")
33- useInMemoryPgpKeys(signingKey, signingPassword)
34- sign configurations.archives
35- }*/
30+ java {
31+ withJavadocJar()
32+ withSourcesJar()
33+ }
3634
37- // ORG_GRADLE_PROJECT_signingPassword
38- // ORG_GRADLE_PROJECT_signingKey
3935
4036test {
4137 useJUnitPlatform()
@@ -45,16 +41,6 @@ test {
4541 }
4642}
4743
48- task javadocJar (type : Jar ) {
49- classifier = ' javadoc'
50- from javadoc
51- }
52-
53- task sourcesJar (type : Jar ) {
54- classifier = ' sources'
55- from sourceSets. main. allSource
56- }
57-
5844artifacts {
5945 archives javadocJar, sourcesJar, jar
6046}
@@ -95,14 +81,17 @@ publishing {
9581 mavenJava (MavenPublication ) {
9682 version = System . getenv(" RELEASE_VERSION" )
9783 groupId = ' dev.personnummer'
98-
99- from components. java
100- }
101- gpr(MavenPublication ) {
102- version = System . getenv(" RELEASE_VERSION" )
103- groupId = ' dev.personnummer'
104-
10584 from components. java
85+ pom {
86+ name = ' Personnummer'
87+ description = ' '
88+ url = ' https://personnummer.dev'
89+ licenses {
90+ license {
91+ name = ' MIT'
92+ }
93+ }
94+ }
10695 }
10796 }
10897}
You can’t perform that action at this time.
0 commit comments