Skip to content

Commit

Permalink
Filter tests and docs subprojects from published javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
royclarkson committed May 21, 2020
1 parent a7936b8 commit 769d661
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ configure(rootProject) {
from javadoc.destinationDir
}

// filter unwanted subprojects from published javadoc
def sourceProjects = subprojects - [project(":spring-cloud-open-service-broker-acceptance-webflux"),
project(":spring-cloud-open-service-broker-acceptance-webmvc"),
project(":spring-cloud-open-service-broker-contract-tests"),
project(":spring-cloud-open-service-broker-docs")]

task apidocs(type: Javadoc) {
group = "Documentation"
description = "Generates aggregated Javadoc API documentation."
Expand All @@ -237,11 +243,11 @@ configure(rootProject) {
options.header = rootProject.description
options.links(javadocLinks)

source subprojects.collect { project ->
source sourceProjects.collect { project ->
project.sourceSets.main.allJava
}

classpath = files(subprojects.collect { project ->
classpath = files(sourceProjects.collect { project ->
project.sourceSets.main.compileClasspath
})

Expand Down

0 comments on commit 769d661

Please sign in to comment.