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 JavaWebStack 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 JavaWebStack 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 7676 <build >
7777 <plugins >
7878 <plugin >
79- <artifactId >maven-deploy-plugin</artifactId >
80- <version >3.0.0-M1</version >
81- <executions >
82- <execution >
83- <id >default-deploy</id >
84- <phase >deploy</phase >
85- <goals >
86- <goal >deploy</goal >
87- </goals >
88- </execution >
89- </executions >
79+ <groupId >org.sonatype.central</groupId >
80+ <artifactId >central-publishing-maven-plugin</artifactId >
81+ <version >0.9.0</version >
82+ <extensions >true</extensions >
83+ <configuration >
84+ <publishingServerId >central</publishingServerId >
85+ </configuration >
9086 </plugin >
9187 <plugin >
9288 <groupId >org.apache.maven.plugins</groupId >
131127 <goal >sign</goal >
132128 </goals >
133129 <configuration >
134- <keyname >A313520526A8DFE1C2A30399C35A3D43C557B112 </keyname >
130+ <keyname >EC9CCFF8901F0AA22191DCEDD619376246C066D0 </keyname >
135131 <passphraseServerId >gpg</passphraseServerId >
136132 <gpgArguments >
137133 <arg >--no-tty</arg >
147143
148144 <distributionManagement >
149145 <snapshotRepository >
150- <id >ossrh </id >
151- <url >https://s01.oss. sonatype.org/content/repositories/ snapshots</url >
146+ <id >central </id >
147+ <url >https://central. sonatype.com/repository/maven- snapshots/ </url >
152148 </snapshotRepository >
153- <repository >
154- <id >ossrh</id >
155- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
156- </repository >
157149 </distributionManagement >
158150
159151</project >
You can’t perform that action at this time.
0 commit comments