File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release to Maven Central
2+
3+ on :
4+ release :
5+ types : [ published ]
6+
7+ permissions :
8+ contents : write
9+
10+
11+
12+ jobs :
13+ build-for-release :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ ref : master
20+ - name : Setup git config
21+ run : |
22+ git config user.name github-actions
23+ git config user.email github-actions@github.com
24+
25+ - name : Set up JDK 19
26+ uses : actions/setup-java@v4
27+ with :
28+ java-version : ' 19'
29+ distribution : ' corretto'
30+ cache : maven
31+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
32+ server-id : central
33+ server-username : MAVEN_USERNAME
34+ server-password : MAVEN_CENTRAL_TOKEN
35+
36+ - if : github.event.release
37+ name : Update version in pom.xml (Release only)
38+ run : mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
39+ - name : Verify and deploy
40+ run : mvn -B deploy --file pom.xml
41+ env :
42+ MAVEN_USERNAME : ${{ secrets.MAVEN_USERNAME }}
43+ MAVEN_CENTRAL_TOKEN : ${{ secrets.MAVEN_CENTRAL_TOKEN }}
44+
45+ - name : Update dependency graph
46+ uses : advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 150150 </executions >
151151 </plugin >
152152 <plugin >
153- <groupId >org.apache.maven.plugins</groupId >
154- <artifactId >maven-release-plugin</artifactId >
155- <version >3.0.1</version >
156- <configuration >
157- <tagNameFormat >v@{project.version}</tagNameFormat >
158- </configuration >
153+ <groupId >org.codehaus.mojo</groupId >
154+ <artifactId >versions-maven-plugin</artifactId >
155+ <version >2.16.2</version >
159156 </plugin >
160157 </plugins >
161158 </build >
You can’t perform that action at this time.
0 commit comments