File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout Sources
14+ uses : actions/checkout@v3
15+ with :
16+ fetch-depth : 0
17+ - name : Setup Java JDK
18+ uses : actions/setup-java@v3
19+ with :
20+ java-version : ' 17'
21+ distribution : ' zulu'
22+ cache : ' maven'
23+ - name : Release
24+ run : ./mvnw --batch-mode deploy jreleaser:full-release
25+ env :
26+ JRELEASER_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27+ JRELEASER_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
28+ JRELEASER_GPG_PUBLIC_KEY : ${{ secrets.GPG_PUBLIC_KEY }}
29+ JRELEASER_GPG_SECRET_KEY : ${{ secrets.GPG_SECRET_KEY }}
30+ JRELEASER_NEXUS2_USERNAME : ${{ secrets.NEXUS2_USERNAME }}
31+ JRELEASER_NEXUS2_PASSWORD : ${{ secrets.NEXUS2_PASSWORD }}
Original file line number Diff line number Diff line change 5858 <maven .surefire.plugin.version>3.1.2</maven .surefire.plugin.version>
5959 <checkstyle .version>10.12.0</checkstyle .version>
6060 <jacoco .version>0.8.10</jacoco .version>
61+ <jreleaser .version>1.7.0</jreleaser .version>
6162 <junit .jupiter.version>5.10.0</junit .jupiter.version>
6263 <mockito .version>5.4.0</mockito .version>
6364 <pmd .version>6.55.0</pmd .version>
6465 <spotbugs .plugin.version>4.7.3.5</spotbugs .plugin.version>
66+ <altDeploymentRepository >local::file:./target/staging-deploy</altDeploymentRepository >
67+ <maven .central.url>https://s01.oss.sonatype.org</maven .central.url>
6568 </properties >
6669
6770 <dependencies >
184187 <artifactId >spotbugs-maven-plugin</artifactId >
185188 <version >${spotbugs.plugin.version} </version >
186189 </plugin >
190+ <plugin >
191+ <groupId >org.jreleaser</groupId >
192+ <artifactId >jreleaser-maven-plugin</artifactId >
193+ <version >${jreleaser.version} </version >
194+ </plugin >
187195 </plugins >
188196 </pluginManagement >
189197 <plugins >
362370 </execution >
363371 </executions >
364372 </plugin >
373+ <plugin >
374+ <groupId >org.jreleaser</groupId >
375+ <artifactId >jreleaser-maven-plugin</artifactId >
376+ <configuration >
377+ <jreleaser >
378+ <signing >
379+ <active >ALWAYS</active >
380+ <armored >true</armored >
381+ </signing >
382+ <deploy >
383+ <maven >
384+ <nexus2 >
385+ <maven-central >
386+ <active >ALWAYS</active >
387+ <url >${maven.central.url} /service/local</url >
388+ <snapshotUrl >${maven.central.url} /content/repositories/snapshots/</snapshotUrl >
389+ <closeRepository >false</closeRepository >
390+ <releaseRepository >false</releaseRepository >
391+ <stagingRepositories >target/staging-deploy</stagingRepositories >
392+ </maven-central >
393+ </nexus2 >
394+ </maven >
395+ </deploy >
396+ </jreleaser >
397+ </configuration >
398+ </plugin >
365399 </plugins >
366400 </build >
367401</project >
You can’t perform that action at this time.
0 commit comments