Skip to content

Commit

Permalink
Move maven's --no-transfer-progress flag out of GitHub workflows an…
Browse files Browse the repository at this point in the history
…d into .mvn/maven.config.
  • Loading branch information
motlin committed May 18, 2024
1 parent e6ad9ec commit a4721b6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 24 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Acceptance Tests
run: ./mvnw install --projects acceptance-tests --also-make --activate-profiles all --no-transfer-progress
run: ./mvnw install --projects acceptance-tests --also-make --activate-profiles all
env:
MAVEN_OPTS: "-Xmx1g"

5 changes: 2 additions & 3 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Checkstyle
run: ./mvnw install checkstyle:check --activate-profiles all -DskipTests=true --no-transfer-progress
run: ./mvnw install checkstyle:check --activate-profiles all -DskipTests=true
env:
MAVEN_OPTS: "-Xmx1g"

4 changes: 2 additions & 2 deletions .github/workflows/earlyaccess-javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
echo "steps.download-jdk.outputs.archive = ${{ steps.download-jdk.outputs.archive }}"
echo "steps.download-jdk.outputs.version = ${{ steps.download-jdk.outputs.version }}"
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: 'JDK Version'
run: java --version
- name: Javadoc
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:aggregate -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections' --no-transfer-progress
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:aggregate -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections'
env:
MAVEN_OPTS: "-Xmx2g"
4 changes: 2 additions & 2 deletions .github/workflows/earlyaccess-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
echo "steps.download-jdk.outputs.archive = ${{ steps.download-jdk.outputs.archive }}"
echo "steps.download-jdk.outputs.version = ${{ steps.download-jdk.outputs.version }}"
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: 'JDK Version'
run: java --version
- name: Unit-Test
run: ./mvnw verify -pl '!p2-repository,!org.eclipse.collections:org.eclipse.collections' --no-transfer-progress
run: ./mvnw verify -pl '!p2-repository,!org.eclipse.collections:org.eclipse.collections'
env:
MAVEN_OPTS: "-Xmx2g"
6 changes: 3 additions & 3 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: JavaDoc Aggregate
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:aggregate -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections' --no-transfer-progress
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:aggregate -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections'
env:
MAVEN_OPTS: "-Xmx1g"
- name: JavaDoc Jar
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:jar -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections' --no-transfer-progress
run: ./mvnw -Dsurefire.useFile=false -DskipTests -Denforcer.skip=true clean install javadoc:jar -pl '!unit-tests,!serialization-tests,!jcstress-tests,!junit-trait-runner,!unit-tests-java8,!test-coverage,!p2-repository,!org.eclipse.collections:org.eclipse.collections'
env:
MAVEN_OPTS: "-Xmx1g"
4 changes: 2 additions & 2 deletions .github/workflows/mutation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Maven Install
run: mvn clean install -DskipTests=true --no-transfer-progress
run: mvn clean install -DskipTests=true
env:
MAVEN_OPTS: "-Xmx1g"
- name: Mutation Test
run: mvn eu.stamp-project:pitmp-maven-plugin:run -DwithHistory -DtimeoutConstant=8000 --no-transfer-progress
run: mvn eu.stamp-project:pitmp-maven-plugin:run -DwithHistory -DtimeoutConstant=8000
env:
MAVEN_OPTS: "-Xmx1g"
- name: Archive pitest reports
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Performance Tests
run: ./mvnw install --projects performance-tests --also-make --activate-profiles all -DskipTests=true --no-transfer-progress
run: ./mvnw install --projects performance-tests --also-make --activate-profiles all -DskipTests=true
env:
MAVEN_OPTS: "-Xmx1g"

5 changes: 2 additions & 3 deletions .github/workflows/unit-no-p2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Unit-Test
run: ./mvnw verify -pl '!p2-repository,!org.eclipse.collections:org.eclipse.collections' --no-transfer-progress
run: ./mvnw verify -pl '!p2-repository,!org.eclipse.collections:org.eclipse.collections'
env:
MAVEN_OPTS: "-Xmx1g"

5 changes: 2 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set Maven Wrapper
run: mvn -N wrapper:wrapper -Dmaven=3.6.3 --no-transfer-progress
run: mvn -N wrapper:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Unit-Test
run: ./mvnw verify --no-transfer-progress
run: ./mvnw verify
env:
MAVEN_OPTS: "-Xmx1g"

1 change: 1 addition & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--show-version
--errors
--no-transfer-progress

0 comments on commit a4721b6

Please sign in to comment.