freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [1/3] incubator-freemarker git commit: FREEMARKER-56 publish source and JavaDoc JARs
Date Sat, 16 Dec 2017 19:58:56 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/3 55b567638 -> d2d7d9842


FREEMARKER-56 publish source and JavaDoc JARs


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/7620a249
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/7620a249
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/7620a249

Branch: refs/heads/3
Commit: 7620a24948de7438d71dd9123611e78875f45ac8
Parents: 55b5676
Author: george thomas <smoothreggae@users.noreply.github.com>
Authored: Fri Dec 15 12:54:15 2017 -0500
Committer: george thomas <smoothreggae@users.noreply.github.com>
Committed: Fri Dec 15 22:40:44 2017 -0500

----------------------------------------------------------------------
 build.gradle                            | 18 ++++++++++++++++--
 freemarker-core-test-java8/build.gradle |  2 ++
 freemarker-core-test/build.gradle       |  2 ++
 freemarker-manual/build.gradle          |  2 ++
 4 files changed, 22 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/7620a249/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 15e20be..d8cbdd0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -261,6 +261,22 @@ subprojects {
         }
     }
 
+    task sourcesJar(type: Jar) {
+        from sourceSets.main.allSource
+        classifier = 'sources'
+    }
+
+    task javadocJar(type: Jar, dependsOn: javadoc) {
+        from javadoc.destinationDir
+        classifier = 'javadoc'
+    }
+
+    artifacts {
+        archives jar
+        archives sourcesJar
+        archives javadocJar
+    }
+
     // The identical parts of Maven "deployer" and "installer" configuration:
     def mavenCommons = { callerDelegate ->
         delegate = callerDelegate
@@ -315,7 +331,6 @@ subprojects {
 
     uploadArchives {
         repositories {
-            // TODO We must deploy source and javadoc artifact as well; see old Ant build.xml
             mavenDeployer {
                 mavenCommons(delegate)
                 repository(
@@ -331,7 +346,6 @@ subprojects {
     }    
 
     install {
-        // TODO We must deploy source and javadoc artifact as well; see old Ant build.xml
         repositories {
             mavenInstaller {
                 mavenCommons(delegate)

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/7620a249/freemarker-core-test-java8/build.gradle
----------------------------------------------------------------------
diff --git a/freemarker-core-test-java8/build.gradle b/freemarker-core-test-java8/build.gradle
index 49e2dfc..f919f6d 100644
--- a/freemarker-core-test-java8/build.gradle
+++ b/freemarker-core-test-java8/build.gradle
@@ -16,8 +16,10 @@ dependencies {
 
 // We have nothing to put into the jar, as we have test classes only
 jar.enabled = false
+sourcesJar.enabled = false
 
 javadoc.enabled = false
+javadocJar.enabled = false
 
 // Must not be deployed to a public Maven repository
 uploadArchives.enabled = false

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/7620a249/freemarker-core-test/build.gradle
----------------------------------------------------------------------
diff --git a/freemarker-core-test/build.gradle b/freemarker-core-test/build.gradle
index 0ce6666..10aec30 100644
--- a/freemarker-core-test/build.gradle
+++ b/freemarker-core-test/build.gradle
@@ -29,8 +29,10 @@ dependencies {
 
 // We have nothing to put into the jar, as we have test classes only
 jar.enabled = false
+sourcesJar.enabled = false
 
 javadoc.enabled = false
+javadocJar.enabled = false
 
 // Must not be deployed to a public Maven repository
 uploadArchives.enabled = false

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/7620a249/freemarker-manual/build.gradle
----------------------------------------------------------------------
diff --git a/freemarker-manual/build.gradle b/freemarker-manual/build.gradle
index 6a12983..5ea49d3 100644
--- a/freemarker-manual/build.gradle
+++ b/freemarker-manual/build.gradle
@@ -17,8 +17,10 @@ dependencies {
 
 // We have nothing to put into the jar, as we have test classes only
 jar.enabled = false
+sourcesJar.enabled = false
 
 javadoc.enabled = false
+javadocJar.enabled = false
 
 // Must not be deployed to a public Maven repository
 uploadArchives.enabled = false


Mime
View raw message