File tree Expand file tree Collapse file tree 2 files changed +58
-9
lines changed
Expand file tree Collapse file tree 2 files changed +58
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Make release
2+
3+ on :
4+ push :
5+ # Sequence of patterns matched against refs/tags
6+ tags :
7+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Set up Java for publishing to Maven Central Repository
15+ uses : actions/setup-java@v4
16+ with :
17+ java-version : ' 8'
18+ distribution : ' temurin'
19+ cache : ' maven'
20+ server-id : central
21+ server-username : MAVEN_USERNAME
22+ server-password : MAVEN_PASSWORD
23+ - name : Make a release
24+ run : mvn -Pdeploy -Pproduction --no-transfer-progress --batch-mode clean deploy
25+ env :
26+ MAVEN_USERNAME : ${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}
27+ MAVEN_PASSWORD : ${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}
28+ MAVEN_GPG_PASSPHRASE : ${{ secrets.ORG_GPG_PASSPHRASE }}
29+ MAVEN_GPG_KEY : ${{ secrets.ORG_GPG_PRIVATE_KEY }}
Original file line number Diff line number Diff line change 2222 <distributionManagement >
2323 <snapshotRepository >
2424 <id >ossrh</id >
25- <url >https://oss .sonatype.org/content/repositories/ snapshots</url >
25+ <url >https://central .sonatype.com/repository/maven- snapshots</url >
2626 </snapshotRepository >
2727 </distributionManagement >
28+ <repositories >
29+ <repository >
30+ <id >ossrh</id >
31+ <url >https://central.sonatype.com/repository/maven-snapshots</url >
32+ <releases >
33+ <enabled >false</enabled >
34+ </releases >
35+ <snapshots >
36+ <enabled >true</enabled >
37+ <updatePolicy >always</updatePolicy >
38+ </snapshots >
39+ </repository >
40+ </repositories >
2841 <licenses >
2942 <license >
3043 <name >Apache License 2.0</name >
111124 <plugin >
112125 <groupId >org.apache.maven.plugins</groupId >
113126 <artifactId >maven-gpg-plugin</artifactId >
114- <version >1 .6</version >
127+ <version >3.2 .6</version >
115128 <executions >
116129 <execution >
117130 <id >sign-artifacts</id >
121134 </goals >
122135 </execution >
123136 </executions >
137+ <configuration >
138+ <!-- Prevent gpg from using pinentry programs -->
139+ <gpgArguments >
140+ <arg >--pinentry-mode</arg >
141+ <arg >loopback</arg >
142+ </gpgArguments >
143+ <signer >bc</signer >
144+ </configuration >
124145 </plugin >
125146 <plugin >
126- <groupId >org.sonatype.plugins </groupId >
127- <artifactId >nexus-staging -maven-plugin</artifactId >
128- <version >1.6.14 </version >
147+ <groupId >org.sonatype.central </groupId >
148+ <artifactId >central-publishing -maven-plugin</artifactId >
149+ <version >0.8.0 </version >
129150 <extensions >true</extensions >
130151 <configuration >
131- <serverId >ossrh</serverId >
132- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
133- <autoReleaseAfterClose >true</autoReleaseAfterClose >
152+ <publishingServerId >central</publishingServerId >
153+ <deploymentName >deployment-store</deploymentName >
134154 </configuration >
135155 </plugin >
136156 </plugins >
137157 </build >
138158 </profile >
139159 </profiles >
140160
141- </project >
161+ </project >
You can’t perform that action at this time.
0 commit comments