File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818 steps :
1919 - uses : actions/checkout@v3
20- - name : Set up JDK 17
20+ - name : Set up JDK 21
2121 uses : actions/setup-java@v3
2222 with :
2323 java-version : 21
Original file line number Diff line number Diff line change 1- # Version 5.0.0
2- # This workflow will build a Java project with Maven
3- # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
4-
51name : Release and Deploy
62
73on :
@@ -15,14 +11,14 @@ jobs:
1511
1612 steps :
1713 - uses : actions/checkout@v4
18- - name : Set up JDK 17
14+ - name : Set up JDK 21
1915 uses : actions/setup-java@v4
2016 with :
2117 java-version : 21
2218 architecture : x64
2319 distribution : temurin
2420 cache : maven
25- server-id : ossrh
21+ server-id : central
2622 server-username : MAVEN_USERNAME # env variable for username in deploy
2723 server-password : MAVEN_PASSWORD # env variable for token in deploy
2824 gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 7878 </plugin >
7979
8080 <plugin >
81- <groupId >org.sonatype.plugins </groupId >
82- <artifactId >nexus-staging -maven-plugin</artifactId >
83- <version >1.7 .0</version >
81+ <groupId >org.sonatype.central </groupId >
82+ <artifactId >central-publishing -maven-plugin</artifactId >
83+ <version >0.8 .0</version >
8484 <extensions >true</extensions >
8585 <configuration >
86- <serverId >ossrh</serverId >
87- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
88- <autoReleaseAfterClose >true</autoReleaseAfterClose >
86+ <publishingServerId >central</publishingServerId >
87+ <autoPublish >true</autoPublish >
8988 </configuration >
9089 </plugin >
9190 <plugin >
126125 </dependency >
127126 </dependencies >
128127
129- <distributionManagement >
130- <snapshotRepository >
131- <id >ossrh</id >
132- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
133- </snapshotRepository >
134- <repository >
135- <id >ossrh</id >
136- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
137- </repository >
138- </distributionManagement >
139-
140128 <repositories >
141129 <repository >
142130 <id >zkoss-ce</id >
You can’t perform that action at this time.
0 commit comments