You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ab...@apache.org on 2019/01/01 00:31:46 UTC

[geode] branch develop updated: GEODE-6235 Publish sources and javadoc to maven

This is an automated email from the ASF dual-hosted git repository.

abaker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4984450  GEODE-6235 Publish sources and javadoc to maven
4984450 is described below

commit 49844506c89a55d8b0a587d5e5446c1b8402c03e
Author: Anthony Baker <ab...@apache.org>
AuthorDate: Mon Dec 31 12:53:49 2018 -0800

    GEODE-6235 Publish sources and javadoc to maven
    
    When we switched to the Nexus plugin we stopped publishing
    sources and javadoc artifacts.  These are useful for IDE integration.
    Add tasks to ensure these get generated during publishing.
---
 gradle/publish.gradle | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gradle/publish.gradle b/gradle/publish.gradle
index 2e8ea54..403c106 100644
--- a/gradle/publish.gradle
+++ b/gradle/publish.gradle
@@ -20,6 +20,16 @@ subprojects {
   apply plugin: 'maven-publish'
   apply plugin: 'signing'
 
+  task sourcesJar(type: Jar) {
+    from sourceSets.main.allJava
+    classifier = 'sources'
+  }
+
+  task javadocJar(type: Jar) {
+    from javadoc
+    classifier = 'javadoc'
+  }
+
   publishing {
     publications {
       maven(MavenPublication) {