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)
@@ -67,18 +68,16 @@ integration)
6768 -DtrimStackTrace=false \
6869 -Dclirr.skip=true \
6970 -Denforcer.skip=true \
71+ -Dcheckstyle.skip=true \
72+ -DskipUnitTests=true \
73+ -Dfmt.skip=true \
7074 -fae \
7175 verify
7276 RETURN_CODE=$?
7377 ;;
7478graalvm)
7579 # Run Unit and Integration Tests with Native Image
76- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
77- RETURN_CODE=$?
78- ;;
79- graalvm17)
80- # Run Unit and Integration Tests with Native Image
81- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
80+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
8281 RETURN_CODE=$?
8382 ;;
8483samples)
@@ -102,6 +101,7 @@ samples)
102101 -DtrimStackTrace=false \
103102 -Dclirr.skip=true \
104103 -Denforcer.skip=true \
104+ -Dfmt.skip=true \
105105 -fae \
106106 verify
107107 RETURN_CODE=$?
@@ -111,7 +111,7 @@ samples)
111111 fi
112112 ;;
113113clirr)
114- mvn -B -ntp -Denforcer.skip=true clirr:check
114+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
115115 RETURN_CODE=$?
116116 ;;
117117* )
0 commit comments