From bd3fe839ce0e4a7276d19e8e873783aa0cd76707 Mon Sep 17 00:00:00 2001 From: Rajini Sivaram Date: Wed, 28 Oct 2015 15:35:13 -0700 Subject: [PATCH] MINOR: Add new build target for system test libs KAFKA-2644 adds MiniKdc for system tests and hence needs a target to collect all MiniKdc jars. At the moment, system tests run `gradlew jar`. Replacing that with `gradlew systemTestLibs` will enable kafka jars and test dependency jars to be built and copied into appropriate locations. Submitting this as a separate PR so that the new target can be added to the build scripts that run system tests before KAFKA-2644 is committed. A separate target for system test artifacts will allow dependency changes to be made in future without breaking test runs. Author: Rajini Sivaram Reviewers: Ismael Juma , Jun Rao Closes #361 from rajinisivaram/kafka-systemTestLibs --- build.gradle | 2 ++ tests/README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 128c195a3a1..21840316352 100644 --- a/build.gradle +++ b/build.gradle @@ -150,6 +150,8 @@ subprojects { task docsJar(dependsOn: javadocJar) + task systemTestLibs(dependsOn: jar) + artifacts { archives srcJar archives javadocJar diff --git a/tests/README.md b/tests/README.md index 82d31daad5b..f2f89548bef 100644 --- a/tests/README.md +++ b/tests/README.md @@ -30,7 +30,7 @@ https://cwiki.apache.org/confluence/display/KAFKA/tutorial+-+set+up+and+run+Kafk $ git checkout $BRANCH $ gradle # (only if necessary) - $ ./gradlew jar + $ ./gradlew systemTestLibs * Run the system tests using ducktape: