File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 java-version : ' 17'
2020
2121 - name : Publish Maven Libraries
22- run : ./gradlew modulefs: publishToSonatype closeAndReleaseSonatypeStagingRepository
22+ run : ./gradlew publishToSonatype
2323 env :
2424 GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
2525 GPG_KEY : ${{ secrets.GPG_KEY }}
Original file line number Diff line number Diff line change @@ -3,22 +3,23 @@ plugins {
33}
44
55group ' io.xpipe'
6-
7- def user = project. hasProperty(' sonatypeUsername' ) ? project. property(' sonatypeUsername' ) : System . getenv(' SONATYPE_USERNAME' )
8- def pass = project. hasProperty(' sonatypePassword' ) ? project. property(' sonatypePassword' ) : System . getenv(' SONATYPE_PASSWORD' )
6+ version ' 0.1.7'
97
108tasks. withType(GenerateModuleMetadata ). configureEach {
119 enabled = false
1210}
1311
12+ def user = project. hasProperty(' sonatypeUsername' ) ? project. property(' sonatypeUsername' ) : System . getenv(' SONATYPE_USERNAME' )
13+ def pass = project. hasProperty(' sonatypePassword' ) ? project. property(' sonatypePassword' ) : System . getenv(' SONATYPE_PASSWORD' )
14+
1415nexusPublishing {
1516 repositories {
1617 sonatype {
18+ stagingProfileId = " 3296258e-7ae3-4559-9365-00733c4b6db0"
1719 nexusUrl. set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
1820 snapshotRepositoryUrl. set(uri(' https://central.sonatype.com/repository/maven-snapshots/' ))
1921 username = user
2022 password = pass
2123 }
2224 }
23- useStaging = true
2425}
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.8-bin .zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-9.0.0-all .zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ plugins {
55}
66
77version ' 0.1.7'
8+ group ' io.xpipe'
89base. archivesName = ' modulefs'
910
1011apply from : ' publish.gradle'
@@ -29,3 +30,7 @@ javadoc {
2930 addBooleanOption(' html5' , true )
3031 }
3132}
33+
34+ test {
35+ failOnNoDiscoveredTests = false
36+ }
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ publishing {
3737
3838def signingKeyId = project. hasProperty(' signingKeyId' ) ? project. property(" signingKeyId" ) : System . getenv(' GPG_KEY_ID' )
3939def signingKey = project. hasProperty(' signingKeyFile' ) ? file(project. property(" signingKeyFile" )). text : System . getenv(' GPG_KEY' )
40- def signingPassword = project. hasProperty(' signingPassword ' ) ? project. property(" signingPassword " ) : System . getenv(' GPG_KEY_PASSWORD' )
40+ def signingPassword = project. hasProperty(' signingKeyPassword ' ) ? project. property(" signingKeyPassword " ) : System . getenv(' GPG_KEY_PASSWORD' )
4141
4242signing {
4343 useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword != null ? signingPassword : ' ' )
You can’t perform that action at this time.
0 commit comments