lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject [lucene-solr] branch jira/SOLR-13452_gradle_2 updated: SOLR-13452: Add task to create single javadoc output for all modules.
Date Tue, 28 May 2019 15:04:12 GMT
This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch jira/SOLR-13452_gradle_2
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/jira/SOLR-13452_gradle_2 by this push:
     new f799de0  SOLR-13452: Add task to create single javadoc output for all modules.
f799de0 is described below

commit f799de037930d678ecfd5b8610c456f0544cbf21
Author: markrmiller <markrmiller@apache.org>
AuthorDate: Tue May 28 10:04:06 2019 -0500

    SOLR-13452: Add task to create single javadoc output for all modules.
---
 build.gradle | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/build.gradle b/build.gradle
index 599989a..e5e2097 100644
--- a/build.gradle
+++ b/build.gradle
@@ -149,3 +149,19 @@ configure(allprojects) {
   }
 }
 
+// Single JavaDocs for all modules
+
+def noJavaDocModules = ["buildSrc", "dev-tools","lucene", "solr", "solr-ref-guide", "analysis",
"backward-codecs", "contrib", "example"]
+def javaDocProjects = subprojects.findAll { project -> !noJavaDocModules.contains(project.name)}
+
+project.afterEvaluate{
+  task javaDocAll(type: Javadoc) {
+    group = 'Documentation'
+    description = "Generates single JavaDoc for all modules."
+    javaDocProjects.each { evaluationDependsOn(it.path) }
+    source javaDocProjects.collect { it.sourceSets.main.allJava }
+    classpath = files(javaDocProjects.collect { it.sourceSets.main.compileClasspath })
+    destinationDir = file("${buildDir}/docs")
+  }
+}
+


Mime
View raw message