File tree Expand file tree Collapse file tree 6 files changed +22
-677
lines changed Expand file tree Collapse file tree 6 files changed +22
-677
lines changed Original file line number Diff line number Diff line change 1111 workflow_dispatch : {}
1212
1313jobs :
14- validate :
15- name : Validation steps
16- runs-on : ubuntu-latest
17- steps :
18- - name : Checkout
19- uses : actions/checkout@v4
20-
21- - name : Run ShellCheck
22- uses : ludeeus/action-shellcheck@master
23- with :
24- check_together : ' yes'
25- scandir : ' ./scripts'
26-
27- - name : Validate codecov.yml
28- shell : bash
29- run : curl -vvv --fail --data-binary @- https://codecov.io/validate < codecov.yml
30-
3114 build :
3215 name : Build on JDK ${{ matrix.java-version }} (${{ matrix.os-name }})
3316 runs-on : ${{ matrix.os-name }}
Original file line number Diff line number Diff line change 4848 git config user.name '${{ github.actor }}'
4949 git config user.email '${{ github.actor }}@users.noreply.github.com'
5050
51- group_id="$(./mvnw help:evaluate -q -DforceStdout -Dexpression="project.groupId")"
52- echo "group_id=${group_id}" >> "${GITHUB_ENV}"
53-
54- artifact_id="$(./mvnw help:evaluate -q -DforceStdout -Dexpression="project.artifactId")"
55- echo "artifact_id=${artifact_id}" >> "${GITHUB_ENV}"
56-
5751 if [[ '${{ inputs.version }}' == "" ]]; then
5852 release_version="$(./mvnw -B help:evaluate -Dexpression=project.version -q -DforceStdout | sed 's/-SNAPSHOT//g')"
5953 else
8983 OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
9084 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
9185
92- - name : Promote Maven Central Staging Release
93- if : ${{ ! inputs.dry-run }}
94- shell : bash
95- run : |-
96- echo "Will now promote ${group_id}/${artifact_id}/${release_version} to Maven Central"
97-
98- ./scripts/close-nexus-repository.sh \
99- -u "${OSSRH_USERNAME}" \
100- -p "${OSSRH_TOKEN}" \
101- -g "${group_id}" \
102- -a "${artifact_id}" \
103- -v "${release_version}" \
104- -s "https://s01.oss.sonatype.org/"
105-
106- echo "Promoted staging ${group_id}/${artifact_id}/${release_version} to Maven Central successfully"
107- env :
108- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
109- OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
110- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
111-
11286 - name : Create GitHub Release
11387 if : ${{ ! inputs.dry-run }}
11488 uses : ncipollo/release-action@v1
Original file line number Diff line number Diff line change 2222 <parent >
2323 <groupId >io.github.ascopes.jct</groupId >
2424 <artifactId >java-compiler-testing-parent</artifactId >
25- <version >5.0.1-SNAPSHOT</version >
25+ <version >5.0.1-rc3- SNAPSHOT</version >
2626 <relativePath >../pom.xml</relativePath >
2727 </parent >
2828
Original file line number Diff line number Diff line change 2121
2222 <groupId >io.github.ascopes.jct</groupId >
2323 <artifactId >java-compiler-testing-parent</artifactId >
24- <version >5.0.1-SNAPSHOT</version >
24+ <version >5.0.1-rc3- SNAPSHOT</version >
2525 <packaging >pom</packaging >
2626
2727 <name >Java Compiler Testing parent project</name >
119119 <maven-resources-plugin .version>3.3.1</maven-resources-plugin .version>
120120 <maven-source-plugin .version>3.3.1</maven-source-plugin .version>
121121 <maven-surefire-plugin .version>3.5.3</maven-surefire-plugin .version>
122+ <nexus-staging-maven-plugin .version>1.7.0</nexus-staging-maven-plugin .version>
122123
123124 <!-- Plugin dependencies -->
124125 <checkstyle .version>10.23.0</checkstyle .version>
675676 </dependency >
676677 </dependencies >
677678 </plugin >
679+
680+ <plugin >
681+ <!--
682+ Intercepts the default deploy phase and replaces it with goals that
683+ handle pushing to Sonatype Nexus (Maven Central's registry backend)
684+ and then triggering a "closure" operation that will promote it to
685+ the public Maven repository.
686+ -->
687+ <groupId >org.sonatype.plugins</groupId >
688+ <artifactId >nexus-staging-maven-plugin</artifactId >
689+ <version >${nexus-staging-maven-plugin.version} </version >
690+ <extensions >true</extensions >
691+ <configuration >
692+ <autoReleaseAfterClose >true</autoReleaseAfterClose >
693+ <nexusUrl >https://s01.oss.sonatype.org/</nexusUrl >
694+ <serverId >ossrh</serverId >
695+ <stagingProgressTimeoutMinutes >10</stagingProgressTimeoutMinutes >
696+ </configuration >
697+ </plugin >
678698 </plugins >
679699 </build >
680700
You can’t perform that action at this time.
0 commit comments