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,
@@ -33,7 +33,6 @@ retry_with_backoff 3 10 \
3333 -DskipTests=true \
3434 -Dclirr.skip=true \
3535 -Denforcer.skip=true \
36- -Dcheckstyle.skip=true \
3736 -Dmaven.javadoc.skip=true \
3837 -Dgcloud.download.skip=true \
3938 -T 1C
@@ -43,21 +42,22 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
4342 export GOOGLE_APPLICATION_CREDENTIALS=$( realpath ${KOKORO_GFILE_DIR} /${GOOGLE_APPLICATION_CREDENTIALS} )
4443fi
4544
45+
4646RETURN_CODE=0
4747set +e
4848
4949case ${JOB_TYPE} in
5050test)
5151 echo " SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT} "
52- 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}
5353 RETURN_CODE=$?
5454 ;;
5555lint)
56- mvn com.coveo :fmt-maven-plugin:check -B -ntp
56+ mvn com.spotify.fmt :fmt-maven-plugin:check -B -ntp
5757 RETURN_CODE=$?
5858 ;;
5959javadoc)
60- mvn javadoc:javadoc javadoc:test-javadoc -B -ntp
60+ mvn javadoc:javadoc javadoc:test-javadoc -B -ntp -Dfmt.skip=true
6161 RETURN_CODE=$?
6262 ;;
6363integration)
@@ -69,17 +69,14 @@ integration)
6969 -Denforcer.skip=true \
7070 -Dcheckstyle.skip=true \
7171 -DskipUnitTests=true \
72+ -Dfmt.skip=true \
73+ -fae \
7274 verify
7375 RETURN_CODE=$?
7476 ;;
7577graalvm)
7678 # Run Unit and Integration Tests with Native Image
77- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
78- RETURN_CODE=$?
79- ;;
80- graalvm17)
81- # Run Unit and Integration Tests with Native Image
82- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
79+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
8380 RETURN_CODE=$?
8481 ;;
8582samples)
@@ -103,6 +100,7 @@ samples)
103100 -DtrimStackTrace=false \
104101 -Dclirr.skip=true \
105102 -Denforcer.skip=true \
103+ -Dfmt.skip=true \
106104 -fae \
107105 verify
108106 RETURN_CODE=$?
@@ -112,7 +110,7 @@ samples)
112110 fi
113111 ;;
114112clirr)
115- mvn -B -ntp -Denforcer.skip=true clirr:check
113+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
116114 RETURN_CODE=$?
117115 ;;
118116* )
0 commit comments