Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-1876

Aggregation of javadocs in muli-project build is cumbersome

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 1.0-milestone-3
    • Fix Version/s: None

      Description

      As best I can tell, the only way to aggregate Javadoc for a multi-project build is:

      task docs(type: Javadoc) {
          source subprojects.collect {project -> project.sourceSets.main.allJava } 
          classpath = files(subprojects.collect {project -> project.sourceSets.main.compileClasspath}) 
          destinationDir = new File(projectDir, 'docs')
      }
      

      That bit makes Maven look easy I suggest some kind of method or propety in the subproject tag. e.g.

      subprojects  {
          aggregateJavaDoc(directory)
          ...
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              randgalt Jordan Zimmerman
            • Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: