geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [07/20] incubator-geode git commit: GEODE-777: Add sources and javadoc jars
Date Tue, 19 Jan 2016 18:29:55 GMT
GEODE-777: Add sources and javadoc jars

Generate sources and javadoc jars for each subproject.  This is
important for a maven workflow.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/77c409c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/77c409c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/77c409c6

Branch: refs/heads/feature/GEODE-715
Commit: 77c409c6125f4eb66a73c5639a4c7329ffca22af
Parents: 0a890a5
Author: Anthony Baker <abaker@apache.org>
Authored: Tue Jan 12 17:07:05 2016 -0800
Committer: Anthony Baker <abaker@apache.org>
Committed: Wed Jan 13 09:42:32 2016 -0800

----------------------------------------------------------------------
 build.gradle                  | 12 ++++++++++++
 gemfire-assembly/build.gradle |  4 ++++
 2 files changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/77c409c6/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 520a605..13b2f33 100755
--- a/build.gradle
+++ b/build.gradle
@@ -296,8 +296,20 @@ subprojects {
     classifier 'test'
   }
 
+  task sourcesJar(type: Jar, dependsOn: classes) {
+    classifier = 'sources'
+    from sourceSets.main.allSource
+  }
+
+  task javadocJar(type: Jar, dependsOn: javadoc) {
+    description 'Assembles a jar archive of javadocs.'
+    from javadoc.destinationDir
+    classifier = 'javadoc'
+  }
+
   artifacts {
     testOutput jarTest
+    archives sourcesJar, javadocJar
   }
 
   sourceSets {

http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/77c409c6/gemfire-assembly/build.gradle
----------------------------------------------------------------------
diff --git a/gemfire-assembly/build.gradle b/gemfire-assembly/build.gradle
index ad466de..3737002 100755
--- a/gemfire-assembly/build.gradle
+++ b/gemfire-assembly/build.gradle
@@ -206,6 +206,10 @@ distributions {
     contents {
       duplicatesStrategy 'exclude'
       
+      exclude '*.asc'
+      exclude '*-sources.jar'
+      exclude '*-javadoc.jar'
+
       into ('config') {
         from defaultCacheConfig
         from defaultDistributionConfig


Mime
View raw message