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)
@@ -78,18 +79,16 @@ integration)
7879 -DtrimStackTrace=false \
7980 -Dclirr.skip=true \
8081 -Denforcer.skip=true \
82+ -Dcheckstyle.skip=true \
83+ -DskipUnitTests=true \
84+ -Dfmt.skip=true \
8185 -fae \
8286 verify
8387 RETURN_CODE=$?
8488 ;;
8589graalvm)
8690 # Run Unit and Integration Tests with Native Image
87- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
88- RETURN_CODE=$?
89- ;;
90- graalvm17)
91- # Run Unit and Integration Tests with Native Image
92- mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test
91+ mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative test -Dfmt.skip=true
9392 RETURN_CODE=$?
9493 ;;
9594samples)
@@ -113,6 +112,7 @@ samples)
113112 -DtrimStackTrace=false \
114113 -Dclirr.skip=true \
115114 -Denforcer.skip=true \
115+ -Dfmt.skip=true \
116116 -fae \
117117 verify
118118 RETURN_CODE=$?
@@ -122,7 +122,7 @@ samples)
122122 fi
123123 ;;
124124clirr)
125- mvn -B -ntp -Denforcer.skip=true clirr:check
125+ mvn -B -ntp -Dfmt.skip=true - Denforcer.skip=true clirr:check
126126 RETURN_CODE=$?
127127 ;;
128128* )
0 commit comments