Skip to content

Commit

Permalink
Fix javadoc build with new cdm modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Oct 23, 2019
1 parent be0fbc4 commit aaf8b10
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,27 @@ task serveUserGuide(type: JRubyExec) {

apply from: "$rootDir/gradle/any/javadoc.gradle"

evaluationDependsOn(":cdm") // Evaluate ":cdm" first so that SourceSets will have been added to the Project.
evaluationDependsOn(":uicdm") // Evaluate ":uicdm" first so that all :cdm SourceSets will have been added to the Project.
// Not sure this is true, but let's see...

task buildJavadocCdm(type: Javadoc) {
description = "Generate Javadoc for the CDM subproject."

title = "NetCDF-Java CDM API v${version}"
destinationDir = file("$buildDir/javadocCdm/")

SourceSet cdmMainSourceSet = rootProject.project(":cdm").sourceSets.main
source cdmMainSourceSet.allJava
classpath = files([ cdmMainSourceSet.compileClasspath, cdmMainSourceSet.output ])
SourceSet cdmCoreSourceSet = rootProject.project(":cdm:cdm-core").sourceSets.main
source cdmCoreSourceSet.allJava

SourceSet cdmImageSourceSet = rootProject.project(":cdm:cdm-image").sourceSets.main
source cdmImageSourceSet.allJava

SourceSet cdmRadialSourceSet = rootProject.project(":cdm:cdm-radial").sourceSets.main
source cdmRadialSourceSet.allJava

classpath = files([ cdmCoreSourceSet.compileClasspath, cdmCoreSourceSet.output,
cdmImageSourceSet.compileClasspath, cdmImageSourceSet.output,
cdmRadialSourceSet.compileClasspath, cdmRadialSourceSet.output])

// This is the public interface. Future changes to the API will attempt to remain backwards compatible with it.
include 'thredds/client/catalog/*.java'
Expand Down

0 comments on commit aaf8b10

Please sign in to comment.