File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1313 distribution : temurin
1414 java-version : 17
1515 - uses : gradle/actions/setup-gradle@v4
16- - run : " ./gradlew publishAllPublicationsToCentralPortal -Psign=true"
16+ - run : " ./gradlew publishAggregationToCentralPortal -Psign=true"
1717 env :
1818 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
1919 SIGNING_PASSPHRASE : ${{ secrets.SIGNING_PASSPHRASE }}
Original file line number Diff line number Diff line change 11plugins {
22 id(" org.gradlex.maven-plugin-development" ) version " 1.0.3"
3- id(" com.gradleup.nmcp" ) version " 0.0.9"
3+ id(" com.gradleup.nmcp" ) version " 1.0.1"
4+ id(" com.gradleup.nmcp.aggregation" ) version " 1.0.1"
45 id(" maven-publish" )
56 id(" signing" )
67 id(" checkstyle" )
@@ -17,6 +18,8 @@ dependencies {
1718 compileOnly(" org.apache.maven:maven-core:$mvnVersion " )
1819 compileOnly(" org.apache.maven:maven-plugin-api:$mvnVersion " )
1920 compileOnly(" org.apache.maven.plugin-tools:maven-plugin-annotations:3.15.1" )
21+
22+ nmcpAggregation(project(path))
2023}
2124
2225mavenPlugin {
@@ -58,7 +61,7 @@ testing.suites.named<JvmTestSuite>("test") {
5861}
5962
6063publishing {
61- publications.create <MavenPublication >(" mavenPlugin" ) {
64+ publications.register <MavenPublication >(" mavenPlugin" ) {
6265 from(components[" java" ])
6366 pom {
6467 name = mavenPlugin.name
@@ -95,11 +98,11 @@ signing {
9598 }
9699}
97100
98- nmcp {
99- publish( " mavenPlugin " ) {
101+ nmcpAggregation {
102+ centralPortal {
100103 username = providers.environmentVariable(" MAVEN_CENTRAL_USERNAME" )
101104 password = providers.environmentVariable(" MAVEN_CENTRAL_PASSWORD" )
102- publicationType = " AUTOMATIC" // "USER_MANAGED"
105+ publishingType = " AUTOMATIC" // "USER_MANAGED"
103106 }
104107}
105108
You can’t perform that action at this time.
0 commit comments