File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ jobs:
1313 java : [ 11, 17 ]
1414
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Set up Java
18- uses : actions/setup-java@v1
18+ uses : actions/setup-java@v4
1919 with :
2020 java-version : ${{ matrix.java }}
21+ distribution : temurin
22+ server-id : central
2123 - name : Cache local Maven repository
2224 uses : actions/cache@v2
2325 with :
Original file line number Diff line number Diff line change @@ -13,12 +13,13 @@ jobs:
1313 java : [ 11, 17 ]
1414
1515 steps :
16- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v4
1717 - name : Set up Java
18- uses : actions/setup-java@v1
18+ uses : actions/setup-java@v4
1919 with :
2020 java-version : ${{ matrix.java }}
21- server-id : sonatype-nexus-snapshots
21+ distribution : temurin
22+ server-id : central
2223 server-username : MAVEN_USERNAME
2324 server-password : MAVEN_PASSWORD
2425 - name : Cache local Maven repository
4748 echo "not deploying on java version: " ${MY_JAVA_VERSION}
4849 fi
4950 env :
50- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
51- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
51+ MAVEN_USERNAME : ${{ secrets.MAVEN_CENTRAL_USERNAME }}
52+ MAVEN_PASSWORD : ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
Original file line number Diff line number Diff line change 175175 <version >3.12.1</version >
176176 </plugin >
177177 <plugin >
178- <groupId >org.apache.maven.plugins</groupId >
179- <artifactId >maven-release-plugin</artifactId >
180- <version >2.5.3</version >
178+ <groupId >org.sonatype.central</groupId >
179+ <artifactId >central-publishing-maven-plugin</artifactId >
180+ <version >0.7.0</version >
181+ <extensions >true</extensions >
182+ <configuration >
183+ <publishingServerId >central</publishingServerId >
184+ <autoPublish >true</autoPublish >
185+ <waitUntil >published</waitUntil >
186+ <waitMaxTime >3600</waitMaxTime >
187+ </configuration >
181188 </plugin >
182189 </plugins >
183190 <pluginManagement >
You can’t perform that action at this time.
0 commit comments