From 11b4812f69e20324f06a72cbf312996709ceb356 Mon Sep 17 00:00:00 2001 From: Mira Leung Date: Fri, 5 Jun 2020 00:42:09 +0000 Subject: [PATCH 1/2] chore: include only external-facing gax testing utils in testlibJar --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 822c63d67..5c559b91a 100644 --- a/build.gradle +++ b/build.gradle @@ -190,6 +190,10 @@ subprojects { task testlibJar(type: Jar, dependsOn: test) { classifier = 'testlib' from sourceSets.test.output + + include('com/google/api/gax/rpc/testing/**') + include('com/google/api/gax/grpc/testing/**') + include('com/google/api/gax/httpjson/testing/**') } // ShadowJar From 3d14e3c608799083f3615052ae0d986682b3ef29 Mon Sep 17 00:00:00 2001 From: Mira Leung Date: Fri, 5 Jun 2020 06:17:50 +0000 Subject: [PATCH 2/2] fix: exclude unit tests from sourcesJar --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 5c559b91a..1d50bea19 100644 --- a/build.gradle +++ b/build.gradle @@ -165,6 +165,8 @@ subprojects { task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource, sourceSets.test.allSource + + exclude('**/*Test.java') } // JavaDoc