diff --git a/README.md b/README.md index 9b272b5..e3fea22 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,8 @@ See our [web site](http://kafka.apache.org) for details on the project. ## Building a jar and running it ## -1. ./gradlew copyDependantLibs -2. ./gradlew jar -3. Follow instuctions in http://kafka.apache.org/documentation.html#quickstart +1. ./gradlew jar +2. Follow instuctions in http://kafka.apache.org/documentation.html#quickstart ## Running unit tests ## ./gradlew test diff --git a/build.gradle b/build.gradle index 858d297..e6f8adc 100644 --- a/build.gradle +++ b/build.gradle @@ -176,7 +176,6 @@ project(':core') { tasks.create(name: "releaseTarGz", dependsOn: configurations.archives.artifacts, type: Tar) { into "." compression = Compression.GZIP - classifier = 'dist' from(project.file("../bin")) { into "bin/" } from(project.file("../config")) { into "config/" } from '../LICENSE' @@ -184,6 +183,12 @@ project(':core') { from(configurations.runtime) { into("libs/") } from(configurations.archives.artifacts.files) { into("libs/") } } + + jar { + dependsOn 'copyDependantLibs' + from '../LICENSE' + from '../NOTICE' + } task testJar(type: Jar) { appendix = 'test' @@ -211,6 +216,11 @@ project(':perf') { zinc 'com.typesafe.zinc:zinc:0.2.5' } + + jar { + from '../LICENSE' + from '../NOTICE' + } } project(':contrib:hadoop-consumer') { @@ -236,6 +246,11 @@ project(':contrib:hadoop-consumer') { compile.exclude module: 'mail' compile.exclude module: 'netty' } + + jar { + from '../LICENSE' + from '../NOTICE' + } } project(':contrib:hadoop-producer') { @@ -261,6 +276,11 @@ project(':contrib:hadoop-producer') { compile.exclude module: 'mail' compile.exclude module: 'netty' } + + jar { + from '../LICENSE' + from '../NOTICE' + } } project(':examples') { @@ -269,6 +289,11 @@ project(':examples') { dependencies { compile project(':core') } + + jar { + from '../LICENSE' + from '../NOTICE' + } } project(':clients') { @@ -278,6 +303,11 @@ project(':clients') { testCompile 'com.novocode:junit-interface:0.9' } + jar { + from '../LICENSE' + from '../NOTICE' + } + task testJar(type: Jar) { appendix = 'test' from sourceSets.test.output