File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2323 java-version : 17
2424 cache : ' maven'
2525
26- - name : Build
27- run : ./mvnw -B verify --file pom.xml
26+ - name : Build and deploy snapshot
27+ run : ./mvnw -B deploy --file pom.xml -s settings.xml -DossrhUsername=${{ secrets.OSSRH_USERNAME }} -DossrhPassword=${{ secrets.OSSRH_PASSWORD }}
Original file line number Diff line number Diff line change 108108 </build >
109109 <distributionManagement >
110110 <repository >
111- <id >sonatype-new </id >
111+ <id >ossrh </id >
112112 <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url >
113113 </repository >
114114 </distributionManagement >
270270 <tag >0.10.0</tag >
271271 </scm >
272272
273+ <distributionManagement >
274+ <snapshotRepository >
275+ <id >ossrh</id >
276+ <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
277+ </snapshotRepository >
278+ </distributionManagement >
279+
273280 <repositories >
274281 <repository >
275282 <id >spring-snapshots</id >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <settings xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
4+ <servers >
5+ <server >
6+ <id >ossrh</id >
7+ <username >${ossrhUsername}</username >
8+ <password >${ossrhPassword}</password >
9+ </server >
10+ </servers >
11+ </settings >
You can’t perform that action at this time.
0 commit comments