11#! /bin/bash
2- # Copyright 2019 Google LLC
2+ # Copyright 2025 Google LLC
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
66# You may obtain a copy of the License at
77#
8- # http ://www.apache.org/licenses/LICENSE-2.0
8+ # https ://www.apache.org/licenses/LICENSE-2.0
99#
1010# Unless required by applicable law or agreed to in writing, software
1111# distributed under the License is distributed on an "AS IS" BASIS,
@@ -42,21 +42,22 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
4242 export GOOGLE_APPLICATION_CREDENTIALS=$( realpath ${KOKORO_GFILE_DIR} /${GOOGLE_APPLICATION_CREDENTIALS} )
4343fi
4444
45+
4546RETURN_CODE=0
4647set +e
4748
4849case ${JOB_TYPE} in
4950test)
5051 echo " SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT} "
51- mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT}
52+ mvn test -B -ntp -Dfmt.skip=true - Dclirr.skip=true -Denforcer.skip=true ${SUREFIRE_JVM_OPT}
5253 RETURN_CODE=$?
5354 ;;
5455lint)
55- mvn com.coveo :fmt-maven-plugin:check -B -ntp
56+ mvn com.spotify.fmt :fmt-maven-plugin:check -B -ntp
5657 RETURN_CODE=$?
5758 ;;
5859javadoc)
59- mvn javadoc:javadoc javadoc:test-javadoc -B -ntp
60+ mvn javadoc:javadoc javadoc:test-javadoc -B -ntp -Dfmt.skip=true
6061 RETURN_CODE=$?
6162 ;;
6263integration)
@@ -66,18 +67,16 @@ integration)
6667 -DtrimStackTrace=false \
6768 -Dclirr.skip=true \
6869 -Denforcer.skip=true \
70+ -Dcheckstyle.skip=true \
71+ -DskipUnitTests=true \
72+ -Dfmt.skip=true \
6973 -fae \
7074 verify
7175 RETURN_CODE=$?
7276 ;;
7377graalvm)
7478 # Run Unit and Integration Tests with Native Image
75- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
76- RETURN_CODE=$?
77- ;;
78- graalvm17)
79- # Run Unit and Integration Tests with Native Image
80- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
79+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
8180 RETURN_CODE=$?
8281 ;;
8382samples)
@@ -101,6 +100,7 @@ samples)
101100 -DtrimStackTrace=false \
102101 -Dclirr.skip=true \
103102 -Denforcer.skip=true \
103+ -Dfmt.skip=true \
104104 -fae \
105105 verify
106106 RETURN_CODE=$?
@@ -110,7 +110,7 @@ samples)
110110 fi
111111 ;;
112112clirr)
113- mvn -B -ntp -Denforcer.skip=true clirr:check
113+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
114114 RETURN_CODE=$?
115115 ;;
116116* )
0 commit comments