Skip to content

Commit 37684bf

Browse files
committed
switch to setup-java@v2
maven wrapper with maven 3.8.4
1 parent e958fda commit 37684bf

7 files changed

Lines changed: 56 additions & 158 deletions

File tree

.github/workflows/maven-build.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
strategy:
2121
matrix:
22-
os: [ ubuntu-latest ]
2322
java: [8, 11, 17]
23+
os: [ubuntu-latest]
24+
distribution: [temurin]
2425

2526
steps:
2627
# Check out Git repository
@@ -29,18 +30,11 @@ jobs:
2930

3031
# Set up environment with Java and Maven
3132
- name: Setup JDK
32-
uses: actions/setup-java@v1
33+
uses: actions/setup-java@v2
3334
with:
35+
distribution: ${{ matrix.distribution }}
3436
java-version: ${{ matrix.java }}
35-
36-
# Set up dependency cache
37-
- name: Cache local Maven repository
38-
uses: actions/cache@v2
39-
with:
40-
path: ~/.m2/repository
41-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
42-
restore-keys: |
43-
${{ runner.os }}-maven-
37+
cache: 'maven'
4438

4539
# Build & verify
4640
- name: Build and verify

.github/workflows/maven-deploy.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,11 @@ jobs:
2626
2727
# Set up environment with Java and Maven
2828
- name: Setup JDK
29-
uses: actions/setup-java@v1
29+
uses: actions/setup-java@v2
3030
with:
31-
java-version: 1.8
32-
33-
# Set up dependency cache
34-
- name: Cache local Maven repository
35-
uses: actions/cache@v2
36-
with:
37-
path: ~/.m2/repository
38-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39-
restore-keys: |
40-
${{ runner.os }}-maven-
31+
distribution: temurin
32+
java-version: 8
33+
cache: 'maven'
4134

4235
# Build, deploy to ossrh, generate and stage site
4336
- name: Build, verify, deploy, generate site

.mvn/wrapper/MavenWrapperDownloader.java

Lines changed: 0 additions & 117 deletions
This file was deleted.

.mvn/wrapper/maven-wrapper.jar

7.83 KB
Binary file not shown.
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
117
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar

mvnw

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mvnw.cmd

Lines changed: 18 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)