File tree Expand file tree Collapse file tree 4 files changed +17
-37
lines changed
Expand file tree Collapse file tree 4 files changed +17
-37
lines changed Original file line number Diff line number Diff line change 2020 - name : Deploy to OSSRH Repository
2121 run : mvn deploy -DbuildVersion=${{ github.event.release.tag_name }} -s build/settings.xml
2222 env :
23- DEPLOYMENT_USERNAME : ${{ secrets.DEPLOYMENT_USERNAME }}
24- DEPLOYMENT_PASSWORD : ${{ secrets.DEPLOYMENT_PASSWORD }}
23+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
24+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
2525 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
26- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 2121 - name : Deploy to OSSRH Repository
2222 run : mvn deploy -s build/settings.xml
2323 env :
24- DEPLOYMENT_USERNAME : ${{ secrets.DEPLOYMENT_USERNAME }}
25- DEPLOYMENT_PASSWORD : ${{ secrets.DEPLOYMENT_PASSWORD }}
24+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
25+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
2626 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
27- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 55>
66 <servers >
77 <server >
8- <id >javawebstack-snapshots</id >
9- <username >${env.DEPLOYMENT_USERNAME}</username >
10- <password >${env.DEPLOYMENT_PASSWORD}</password >
11- </server >
12- <server >
13- <id >javawebstack-releases</id >
14- <username >${env.DEPLOYMENT_USERNAME}</username >
15- <password >${env.DEPLOYMENT_PASSWORD}</password >
16- </server >
17- <server >
18- <id >ossrh</id >
19- <username >JavaWebStack</username >
20- <password >${env.OSSRH_PASSWORD}</password >
8+ <id >central</id >
9+ <username >${env.CENTRAL_USERNAME}</username >
10+ <password >${env.CENTRAL_PASSWORD}</password >
2111 </server >
2212 <server >
2313 <id >gpg</id >
Original file line number Diff line number Diff line change 5252 <build >
5353 <plugins >
5454 <plugin >
55- <artifactId >maven-deploy-plugin</artifactId >
56- <version >2.7</version >
57- <executions >
58- <execution >
59- <id >default-deploy</id >
60- <phase >deploy</phase >
61- <goals >
62- <goal >deploy</goal >
63- </goals >
64- </execution >
65- </executions >
55+ <groupId >org.sonatype.central</groupId >
56+ <artifactId >central-publishing-maven-plugin</artifactId >
57+ <version >0.9.0</version >
58+ <extensions >true</extensions >
59+ <configuration >
60+ <publishingServerId >central</publishingServerId >
61+ </configuration >
6662 </plugin >
6763 <plugin >
6864 <groupId >org.apache.maven.plugins</groupId >
10298 <goal >sign</goal >
10399 </goals >
104100 <configuration >
105- <keyname >A313520526A8DFE1C2A30399C35A3D43C557B112 </keyname >
101+ <keyname >EC9CCFF8901F0AA22191DCEDD619376246C066D0 </keyname >
106102 <passphraseServerId >gpg</passphraseServerId >
107103 <gpgArguments >
108104 <arg >--no-tty</arg >
118114
119115 <distributionManagement >
120116 <snapshotRepository >
121- <id >ossrh </id >
122- <url >https://s01.oss. sonatype.org/content/repositories/ snapshots</url >
117+ <id >central </id >
118+ <url >https://central. sonatype.com/repository/maven- snapshots/ </url >
123119 </snapshotRepository >
124- <repository >
125- <id >ossrh</id >
126- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
127- </repository >
128120 </distributionManagement >
129121
130122</project >
You can’t perform that action at this time.
0 commit comments