File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 55 branches : [ "main" ]
66 pull_request :
77 branches : [ "main" ]
8- schedule :
9- - cron : " 0 0 * * 0" # Every Sunday at midnight UTC
108
119jobs :
1210 build :
Original file line number Diff line number Diff line change 3434 run : |
3535 VERSION="${GITHUB_REF_NAME#v}" # removes leading 'v' from tag name
3636 echo "Publishing version $VERSION"
37- ./gradlew -Pversion="$VERSION" -Psign publishAggregationToCentralPortal
37+ ./gradlew -Pversion="$VERSION" -Psign publishAllPublicationsToCentralPortal
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ SIGNING_PASSWORD=<PGP password>
1919Artifacts are published to Maven Central via Sonatype, using following Gradle task.
2020
2121``` bash
22- ./gradlew -Pversion=< version> -Psign publishAggregationToCentralPortal
22+ ./gradlew -Pversion=< version> -Psign publishAllPublicationsToCentralPortal
2323```
2424
2525This command uses ` nmcp ` Gradle plugin - [ link] ( https://github.com/GradleUp/nmcp ) .
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ plugins {
55 id(" maven-publish" )
66 id(" signing" )
77 id(" com.diffplug.spotless" ).version(" 8.0.0" )
8- id(" com.gradleup.nmcp.aggregation " ).version(" 1.2.0" )
8+ id(" com.gradleup.nmcp" ).version(" 1.2.0" )
99}
1010
1111group = " io.github.malczuuu.problem4j"
@@ -79,14 +79,13 @@ publishing {
7979 }
8080}
8181
82- nmcpAggregation {
83- centralPortal {
82+ nmcp {
83+ publishAllPublicationsToCentralPortal {
8484 username = System .getenv(" PUBLISHING_USERNAME" )
8585 password = System .getenv(" PUBLISHING_PASSWORD" )
8686
8787 publishingType = " USER_MANAGED"
8888 }
89- publishAllProjectsProbablyBreakingProjectIsolation()
9089}
9190
9291signing {
You can’t perform that action at this time.
0 commit comments