diff --git a/.kokoro/build.sh b/.kokoro/build.sh index a3ce28669510..ae5755dbf435 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -54,14 +54,14 @@ fi mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V # prepend Kokoro root directory onto GOOGLE_APPLICATION_CREDENTIALS path -if [[ ! -z "$GOOGLE_APPLICATION_CREDENTIALS" ]]; then +if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" ]]; then export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS}) fi -case $JOB_TYPE in +case ${JOB_TYPE} in test) mvn test -B - bash $KOKORO_GFILE_DIR/codecov.sh + bash ${KOKORO_GFILE_DIR}/codecov.sh ;; lint) mvn com.coveo:fmt-maven-plugin:check diff --git a/google-cloud-clients/pom.xml b/google-cloud-clients/pom.xml index a11be7329860..4e7ddcb5f935 100644 --- a/google-cloud-clients/pom.xml +++ b/google-cloud-clients/pom.xml @@ -660,37 +660,6 @@ - - org.apache.maven.plugins - maven-checkstyle-plugin - 2.17 - - - com.puppycrawl.tools - checkstyle - 6.16 - - - - - checkstyle - validate - - check - - - java.header - license-checks.xml - true - true - error - true - true - com/google/cloud/*/v*/** - - - - org.apache.maven.plugins maven-site-plugin @@ -928,5 +897,48 @@ + + + + checkstyle-tests + + [1.8,) + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.0.0 + + + com.puppycrawl.tools + checkstyle + 8.19 + + + + + checkstyle + validate + + check + + + java.header + license-checks.xml + true + true + error + true + true + com/google/cloud/*/v*/** + + + + + + + diff --git a/google-cloud-util/google-cloud-compat-checker/pom.xml b/google-cloud-util/google-cloud-compat-checker/pom.xml index b39ec2371bc0..2f7ca9670386 100644 --- a/google-cloud-util/google-cloud-compat-checker/pom.xml +++ b/google-cloud-util/google-cloud-compat-checker/pom.xml @@ -95,7 +95,7 @@ org.apache.maven.plugins maven-checkstyle-plugin - 2.17 + 3.0.0 checkstyle