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 22
22
<distributionManagement >
23
23
<snapshotRepository >
24
24
<id >ossrh</id >
25
- <url >https://oss .sonatype.org/content/repositories/ snapshots</url >
25
+ <url >https://central .sonatype.com/repository/maven- snapshots</url >
26
26
</snapshotRepository >
27
27
</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 >
28
41
<licenses >
29
42
<license >
30
43
<name >Apache License 2.0</name >
111
124
<plugin >
112
125
<groupId >org.apache.maven.plugins</groupId >
113
126
<artifactId >maven-gpg-plugin</artifactId >
114
- <version >1 .6</version >
127
+ <version >3.2 .6</version >
115
128
<executions >
116
129
<execution >
117
130
<id >sign-artifacts</id >
121
134
</goals >
122
135
</execution >
123
136
</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 >
124
145
</plugin >
125
146
<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 >
129
150
<extensions >true</extensions >
130
151
<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 >
134
154
</configuration >
135
155
</plugin >
136
156
</plugins >
137
157
</build >
138
158
</profile >
139
159
</profiles >
140
160
141
- </project >
161
+ </project >
You can’t perform that action at this time.
0 commit comments