Skip to content

Commit dbc5997

Browse files
committed
Update CI, maven wrapper
1 parent 7d2e991 commit dbc5997

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ permissions:
2121

2222
jobs:
2323
build:
24-
runs-on: ${{ matrix.os }}
24+
runs-on: 'ubuntu-22.04'
2525
strategy:
2626
fail-fast: false
2727
matrix:
2828
java_version: ['8', '11', '17', '21']
29-
os: ['ubuntu-20.04']
29+
include:
30+
- java_version: '17'
31+
release_build: 'R'
3032
env:
3133
JAVA_OPTS: "-XX:+TieredCompilation -XX:TieredStopAtLevel=1"
3234
steps:
33-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3436
- name: Set up JDK
35-
uses: actions/setup-java@v4
37+
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
3638
with:
3739
distribution: 'temurin'
3840
java-version: ${{ matrix.java_version }}
@@ -49,18 +51,18 @@ jobs:
4951
id: projectVersion
5052
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >> $GITHUB_OUTPUT
5153
- name: Deploy snapshot
52-
if: github.event_name != 'pull_request' && matrix.java_version == '8' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT')
54+
if: ${{ matrix.release_build && github.event_name != 'pull_request' && endsWith(steps.projectVersion.outputs.version, '-SNAPSHOT') }}
5355
env:
5456
CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }}
5557
CI_DEPLOY_PASSWORD: ${{ secrets.CI_DEPLOY_PASSWORD }}
5658
# MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
5759
run: ./mvnw -B -q -ff -DskipTests -ntp source:jar deploy
5860
- name: Generate code coverage
59-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
61+
if: ${{ matrix.release_build && github.event_name != 'pull_request' }}
6062
run: ./mvnw -B -q -ff -ntp test
6163
- name: Publish code coverage
62-
if: github.event_name != 'pull_request' && matrix.java_version == '8'
63-
uses: codecov/codecov-action@v5
64+
if: ${{ matrix.release_build && github.event_name != 'pull_request' }}
65+
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
6466
with:
6567
token: ${{ secrets.CODECOV_TOKEN }}
6668
file: ./target/site/jacoco/jacoco.xml

.mvn/wrapper/maven-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip
18-
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.3.1/maven-wrapper-3.3.1.jar

0 commit comments

Comments
 (0)