Skip to content

Commit

Permalink
Use Maven 4.0.0-beta-4 to build, use split repo, cache only the remot…
Browse files Browse the repository at this point in the history
…e repo
  • Loading branch information
gnodet committed Oct 11, 2024
1 parent df20608 commit 7813968
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ jobs:

- uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ github.sha }}
path: ~/.m2/repository/cached
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-

- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7"
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-beta-4"

- name: Build with Maven
run: ./mvnw verify -e -B -V -DdistributionFileName=apache-maven
Expand Down Expand Up @@ -132,7 +133,13 @@ jobs:

- name: Set up Maven
run:
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=3.9.7"
mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper "-Dmaven=4.0.0-beta-4"

- uses: actions/cache@v4
with:
path: ~/.m2/repository/cached
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: maven-

- name: Build Maven
run: ./mvnw install -e -B -V -DdistributionFileName=apache-maven -DskipTests -f maven/pom.xml
Expand Down
1 change: 1 addition & 0 deletions .mvn/maven.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
aether.lrm.enhanced.split = true

0 comments on commit 7813968

Please sign in to comment.