diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index cb6f9295e..8a8a9789f 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -21,7 +21,10 @@ cd github/google-auth-library-java/
java -version
echo $JOB_TYPE
-mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
+mvn install -B -V \
+ -DskipTests=true \
+ -Dclirr.skip \
+ -Dmaven.javadoc.skip=true
case ${JOB_TYPE} in
test)
@@ -37,6 +40,9 @@ javadoc)
integration)
mvn -B -pl ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -fae verify
;;
+clirr)
+ mvn -B clirr:check
+ ;;
*)
;;
esac
diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index 378ce9279..0bc78be58 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -23,5 +23,7 @@ echo $JOB_TYPE
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
-mvn install -DskipTests=true -B -V
+mvn install -B -V \
+ -Dclirr.skip=true \
+ -DskipTests=true
mvn -B dependency:analyze -DfailOnWarning=true
diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg
new file mode 100644
index 000000000..ec572442e
--- /dev/null
+++ b/.kokoro/presubmit/clirr.cfg
@@ -0,0 +1,13 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+# Configure the docker image for kokoro-trampoline.
+
+env_vars: {
+ key: "TRAMPOLINE_IMAGE"
+ value: "gcr.io/cloud-devrel-kokoro-resources/java8"
+}
+
+env_vars: {
+ key: "JOB_TYPE"
+ value: "clirr"
+}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 3f4c13536..5eef45927 100644
--- a/pom.xml
+++ b/pom.xml
@@ -208,6 +208,11 @@
true
+
+ org.codehaus.mojo
+ clirr-maven-plugin
+ 2.8
+
@@ -255,6 +260,13 @@
error
true
true
+
+
+ src/main
+
+
+ src/test
+
@@ -286,6 +298,21 @@
+
+ org.codehaus.mojo
+ clirr-maven-plugin
+
+ clirr-ignored-differences.xml
+ true
+
+
+
+
+ check
+
+
+
+