You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by gw...@apache.org on 2016/03/17 22:14:16 UTC
kafka git commit: KAFKA-3250: release tarball is unnecessarily large due to duplicate l…
Repository: kafka
Updated Branches:
refs/heads/trunk 3f28d7744 -> 61281f5c5
KAFKA-3250: release tarball is unnecessarily large due to duplicate l…
…ibraries
This ensures duplicates are not copied in the distribution without rewriting all of the tar'ing logic. A larger improvement could be made to the packaging code, but that should be tracked by another jira.
Author: Grant Henke <gr...@gmail.com>
Reviewers: Gwen Shapira, Ismael Juma
Closes #1075 from granthenke/libs-duplicates
Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/61281f5c
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/61281f5c
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/61281f5c
Branch: refs/heads/trunk
Commit: 61281f5c53ebe130defa881f32084c581cf16d43
Parents: 3f28d77
Author: Grant Henke <gr...@gmail.com>
Authored: Thu Mar 17 14:14:12 2016 -0700
Committer: Gwen Shapira <cs...@gmail.com>
Committed: Thu Mar 17 14:14:12 2016 -0700
----------------------------------------------------------------------
build.gradle | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kafka/blob/61281f5c/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 4b84ba5..81e4af5 100644
--- a/build.gradle
+++ b/build.gradle
@@ -365,6 +365,7 @@ project(':core') {
exclude('kafka-clients*')
}
into "$buildDir/dependant-libs-${versions.scala}"
+ duplicatesStrategy 'exclude'
}
@@ -417,6 +418,7 @@ project(':core') {
compression = Compression.GZIP
from project.file("../docs")
into 'site-docs'
+ duplicatesStrategy 'exclude'
}
tasks.create(name: "releaseTarGz", dependsOn: configurations.archives.artifacts, type: Tar) {
@@ -443,6 +445,7 @@ project(':core') {
from(project(':streams').configurations.runtime) { into("libs/") }
from(project(':streams:examples').jar) { into("libs/") }
from(project(':streams:examples').configurations.runtime) { into("libs/") }
+ duplicatesStrategy 'exclude'
}
jar {
@@ -460,6 +463,7 @@ project(':core') {
include('*.jar')
}
into "$buildDir/dependant-testlibs"
+ duplicatesStrategy 'exclude'
}
checkstyle {
@@ -573,6 +577,7 @@ project(':tools') {
exclude('kafka-clients*')
}
into "$buildDir/dependant-libs-${versions.scala}"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -608,6 +613,7 @@ project(':streams') {
exclude('kafka-clients*')
}
into "$buildDir/dependant-libs-${versions.scala}"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -636,6 +642,7 @@ project(':streams:examples') {
exclude('kafka-streams*')
}
into "$buildDir/dependant-libs-${versions.scala}"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -684,6 +691,7 @@ project(':connect:api') {
exclude('connect-*')
}
into "$buildDir/dependant-libs"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -720,6 +728,7 @@ project(':connect:json') {
exclude('connect-*')
}
into "$buildDir/dependant-libs"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -765,6 +774,7 @@ project(':connect:runtime') {
exclude('connect-*')
}
into "$buildDir/dependant-libs"
+ duplicatesStrategy 'exclude'
}
jar {
@@ -807,6 +817,7 @@ project(':connect:file') {
exclude('connect-*')
}
into "$buildDir/dependant-libs"
+ duplicatesStrategy 'exclude'
}
jar {