kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jun...@apache.org
Subject git commit: kafka-1244,kafka-1246,kafka-1249; various gradle issues for release; patched by Jun Rao; reviewed by Neha Narkhede
Date Wed, 12 Feb 2014 16:31:24 GMT
Updated Branches:
  refs/heads/0.8.1 8d623e157 -> 5023c2ff2


kafka-1244,kafka-1246,kafka-1249; various gradle issues for release; patched by Jun Rao; reviewed
by Neha Narkhede


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/5023c2ff
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/5023c2ff
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/5023c2ff

Branch: refs/heads/0.8.1
Commit: 5023c2ff2e7293cd559513d3fed811b08048198d
Parents: 8d623e1
Author: Jun Rao <junrao@gmail.com>
Authored: Wed Feb 12 08:28:57 2014 -0800
Committer: Jun Rao <junrao@gmail.com>
Committed: Wed Feb 12 08:28:57 2014 -0800

----------------------------------------------------------------------
 README.md       |  5 ++---
 build.gradle    | 37 ++++++++++++++++++++++++++++++++++---
 scala.gradle    |  5 +++++
 settings.gradle |  1 +
 4 files changed, 42 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/5023c2ff/README.md
----------------------------------------------------------------------
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

http://git-wip-us.apache.org/repos/asf/kafka/blob/5023c2ff/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 858d297..19bbbae 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,6 +28,7 @@ allprojects {
 }
 
 apply from: file('gradle/license.gradle')
+apply from: file('scala.gradle')
 
 subprojects {
   apply plugin: 'java'
@@ -113,7 +114,7 @@ project(':core') {
   println "Building project 'core' with Scala version $scalaVersion"
 
   apply plugin: 'scala'
-  archivesBaseName = "kafka_${scalaVersion}"
+  archivesBaseName = "kafka_${baseScalaVersion}"
 
   def (major, minor, trivial) = scalaVersion.tokenize('.')
 
@@ -176,7 +177,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 +184,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'
@@ -202,7 +208,7 @@ project(':perf') {
   println "Building project 'perf' with Scala version $scalaVersion"
 
   apply plugin: 'scala'
-  archivesBaseName = "kafka-perf_${scalaVersion}"
+  archivesBaseName = "kafka-perf_${baseScalaVersion}"
 
   dependencies {
     compile project(':core')
@@ -211,6 +217,11 @@ project(':perf') {
 
     zinc 'com.typesafe.zinc:zinc:0.2.5'
   }
+
+  jar {
+    from '../LICENSE'
+    from '../NOTICE'
+  }
 }
 
 project(':contrib:hadoop-consumer') {
@@ -236,6 +247,11 @@ project(':contrib:hadoop-consumer') {
     compile.exclude module: 'mail'
     compile.exclude module: 'netty'
   }
+
+  jar {
+    from '../LICENSE'
+    from '../NOTICE'
+  }
 }
 
 project(':contrib:hadoop-producer') {
@@ -261,6 +277,11 @@ project(':contrib:hadoop-producer') {
     compile.exclude module: 'mail'
     compile.exclude module: 'netty'
   }
+
+  jar {
+    from '../LICENSE'
+    from '../NOTICE'
+  }
 }
 
 project(':examples') {
@@ -269,6 +290,11 @@ project(':examples') {
   dependencies {
     compile project(':core')
   }
+
+  jar {
+    from '../LICENSE'
+    from '../NOTICE'
+  }
 }
 
 project(':clients') {
@@ -278,6 +304,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

http://git-wip-us.apache.org/repos/asf/kafka/blob/5023c2ff/scala.gradle
----------------------------------------------------------------------
diff --git a/scala.gradle b/scala.gradle
new file mode 100644
index 0000000..ebd21b8
--- /dev/null
+++ b/scala.gradle
@@ -0,0 +1,5 @@
+if (!hasProperty('scalaVersion')) {
+  ext.scalaVersion = '2.8.0'
+}
+ext.defaultScalaVersion = '2.8.0'
+ext.baseScalaVersion = (scalaVersion.startsWith('2.10')) ? '2.10' : scalaVersion

http://git-wip-us.apache.org/repos/asf/kafka/blob/5023c2ff/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 74e591a..6041784 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -13,4 +13,5 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+apply from: file('scala.gradle')
 include 'core', 'perf', 'contrib:hadoop-consumer', 'contrib:hadoop-producer', 'examples',
'clients'


Mime
View raw message