File tree Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Expand file tree Collapse file tree 2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 7
7
runs-on : ubuntu-latest
8
8
permissions :
9
9
contents : write
10
- pull-requests : write
11
10
steps :
12
11
- name : Validate branch
13
12
if : ${{ github.ref != 'refs/heads/master' }}
22
21
with :
23
22
distribution : ' corretto'
24
23
java-version : ' 8'
25
- server-id : sonatype-nexus-staging
24
+ server-id : ossrh
26
25
server-username : ${{ secrets.OSSRH_USERNAME }}
27
26
server-password : ${{ secrets.OSSRH_PASSWORD }}
28
27
34
33
- name : Maven release
35
34
run : |
36
35
mvn \
37
- -e \
38
36
-B \
39
37
-P release \
40
38
release:clean \
Original file line number Diff line number Diff line change 47
47
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
48
48
<maven .compiler.source>1.8</maven .compiler.source>
49
49
<maven .compiler.target>1.8</maven .compiler.target>
50
- <ossrh .id>sonatype-nexus-staging</ossrh .id>
51
- <ossrh .url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</ossrh .url>
52
50
</properties >
53
51
54
52
<distributionManagement >
55
- <snapshotRepository >
56
- <id >sonatype-nexus-snapshots</id >
57
- <name >Sonatype Nexus Snapshots</name >
58
- <url >${sonatypeOssDistMgmtSnapshotsUrl} </url >
59
- </snapshotRepository >
60
53
<repository >
61
- <id >${ ossrh.id} </id >
54
+ <id >ossrh</id >
62
55
<name >Nexus Release Repository</name >
63
- <url >${ossrh.url} </url >
56
+ <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/ </url >
64
57
</repository >
65
58
</distributionManagement >
66
59
119
112
<groupId >org.apache.maven.plugins</groupId >
120
113
<artifactId >maven-release-plugin</artifactId >
121
114
<version >2.5.3</version >
115
+ <configuration >
116
+ <goals >deploy</goals >
117
+ </configuration >
122
118
</plugin >
123
119
<plugin >
124
120
<groupId >org.apache.maven.plugins</groupId >
197
193
</execution >
198
194
</executions >
199
195
</plugin >
196
+ <plugin >
197
+ <groupId >org.apache.maven.plugins</groupId >
198
+ <artifactId >maven-deploy-plugin</artifactId >
199
+ <version >2.7</version >
200
+ <configuration >
201
+ <skip >true</skip >
202
+ </configuration >
203
+ </plugin >
200
204
<plugin >
201
205
<groupId >org.sonatype.plugins</groupId >
202
206
<artifactId >nexus-staging-maven-plugin</artifactId >
203
207
<version >1.6.8</version >
208
+ <extensions >true</extensions >
204
209
<configuration >
205
- <serverId >${ ossrh.id} </serverId >
206
- <nexusUrl >${ossrh.url} </nexusUrl >
210
+ <serverId >ossrh</serverId >
211
+ <nexusUrl >https://oss.sonatype.org/ </nexusUrl >
207
212
<autoReleaseAfterClose >true</autoReleaseAfterClose >
208
213
</configuration >
209
214
</plugin >
You can’t perform that action at this time.
0 commit comments