-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove maven cache by moving it to java setup * chore: set 4 thread * chore: fix formatting
- Loading branch information
Showing
6 changed files
with
22 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,18 +24,7 @@ jobs: | |
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
cache: 'maven' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
|
@@ -51,7 +40,6 @@ jobs: | |
# otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error | ||
- name: Build with Maven | ||
run: | | ||
mvn -B spring-javaformat:apply --no-transfer-progress | ||
mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true | ||
- uses: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,18 +23,7 @@ jobs: | |
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
cache: 'maven' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
|
@@ -50,7 +39,6 @@ jobs: | |
# otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error | ||
- name: Build with Maven | ||
run: | | ||
mvn -B spring-javaformat:apply --no-transfer-progress | ||
mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true | ||
- uses: codecov/codecov-action@v3 | ||
|
@@ -69,18 +57,7 @@ jobs: | |
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
cache: 'maven' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,7 @@ jobs: | |
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
cache: 'maven' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
|
@@ -46,7 +35,6 @@ jobs: | |
# otherwise the build will fail https://stackoverflow.com/questions/38051787/maven-javadoc-skip-true-throws-an-error | ||
- name: Build with Maven | ||
run: | | ||
mvn -B spring-javaformat:apply --no-transfer-progress | ||
mvn -B verify -P coverage --no-transfer-progress -D maven.javadoc.skip=true | ||
- uses: codecov/codecov-action@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,18 +31,7 @@ jobs: | |
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE | ||
|
||
- name: Cache local Maven repository | ||
uses: actions/[email protected] | ||
env: | ||
cache-name: cache-mvn | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
cache: 'maven' | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
|
@@ -58,7 +47,7 @@ jobs: | |
run: mvn versions:set "-DnewVersion=${{ github.event.inputs.releaseversion }}" --no-transfer-progress | ||
|
||
- name: Publish package | ||
run: mvn --batch-mode clean deploy --no-transfer-progress -P central-deploy -DskipTests=true | ||
run: mvn -B deploy --no-transfer-progress -P central-deploy -DskipTests=true | ||
env: | ||
#TODO: This is a workaround for NEXUS-27902 which uses XStream that fails on JVM >16 | ||
JDK_JAVA_OPTIONS: "--add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters