mirror of
https://github.com/google/guava.git
synced 2026-10-28 08:35:50 +08:00
Stop passing [-ntp](https://maven.apache.org/docs/3.6.1/release-notes.html#user-visible-changes) now that it [is the default for GitHub Actions](https://github.com/actions/setup-java/pull/1053).
The default changed [in time for `actions/setup-java` release 5.5.0](https://github.com/actions/setup-java/commit/6c4d4a5025dca6ad7cc86c839fadbcb66762ed3b). We are [on 5.6.0](https://github.com/google/guava/blob/ad1aebcf6df97a3e7b1965e8b58746228f150233/.github/workflows/ci.yml#L44). I [noticed this yesterday](https://github.com/google/guava/pull/8627#issuecomment-5400043165). RELNOTES=n/a PiperOrigin-RevId: 970673459
This commit is contained in:
1 parent
96e9d22dbd
commit
3121e272c4
3 files changed
+3
-7
No files matched your search
@@ -50,10 +50,10 @@ jobs:
|
||||
cache: 'maven'
|
||||
- name: 'Install'
|
||||
shell: bash
|
||||
run: ./mvnw -B -ntp -Dtoolchain.skip install -U -DskipTests=true -f $ROOT_POM
|
||||
run: ./mvnw -B -Dtoolchain.skip install -U -DskipTests=true -f $ROOT_POM
|
||||
- name: 'Test'
|
||||
shell: bash
|
||||
run: ./mvnw -B -ntp -P!standard-with-extra-repos -Dtoolchain.skip verify -U -Dmaven.javadoc.skip=true -Dsurefire.toolchain.version=${{ matrix.java }} -f $ROOT_POM
|
||||
run: ./mvnw -B -P!standard-with-extra-repos -Dtoolchain.skip verify -U -Dmaven.javadoc.skip=true -Dsurefire.toolchain.version=${{ matrix.java }} -f $ROOT_POM
|
||||
- name: 'Print Surefire reports'
|
||||
# Note: Normally a step won't run if the job has failed, but this causes it to
|
||||
if: ${{ failure() }}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
set -e -u
|
||||
|
||||
function mvn_deploy() {
|
||||
./mvnw -ntp -DskipTests=true clean deploy "$@"
|
||||
./mvnw -DskipTests=true clean deploy "$@"
|
||||
}
|
||||
|
||||
echo "Publishing Maven snapshot..."
|
||||
|
||||
@@ -6,14 +6,12 @@ set -eu
|
||||
--projects '!guava-testlib,!guava-tests,!guava-bom,!guava-gwt' \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dmaven.javadoc.skip=true \
|
||||
-ntp \
|
||||
clean install
|
||||
./mvnw \
|
||||
-f android \
|
||||
--projects '!guava-testlib,!guava-tests,!guava-bom' \
|
||||
-Dmaven.test.skip=true \
|
||||
-Dmaven.javadoc.skip=true \
|
||||
-ntp \
|
||||
clean install
|
||||
|
||||
# We run these separately so that their changes to the default toolchain doesn't affect anything else.
|
||||
@@ -21,13 +19,11 @@ set -eu
|
||||
|
||||
./mvnw \
|
||||
--projects '!guava-testlib,!guava-tests,!guava-bom,!guava-gwt' \
|
||||
-ntp \
|
||||
initialize -P print-java-11-home
|
||||
JAVA_11_HOME=$(<target/java_11_home)
|
||||
|
||||
./mvnw \
|
||||
--projects '!guava-testlib,!guava-tests,!guava-bom,!guava-gwt' \
|
||||
-ntp \
|
||||
initialize -P print-java-17-home
|
||||
JAVA_17_HOME=$(<target/java_17_home)
|
||||
|
||||
|
||||
Reference in new issue
Block a user