Fix Dokka reference to Spring Framework's Javadoc

This commit specifies a local packageListUrl and defines that dokka task
must be executed after the api task in order to be able to build KDoc
during the release process when the Spring Framework's Javadoc is not
published yet.

Issue: SPR-16687
master
sdeleuze 7 years ago
parent 4967dd887d
commit c7c743872a
  1. 9
      gradle/docs.gradle

@ -49,12 +49,9 @@ task api(type: Javadoc) {
} }
} }
// Need https://github.com/Kotlin/dokka/issues/184 to be fixed to avoid "Can't find node by signature" log spam
dokka { dokka {
dependsOn { dependsOn {
subprojects.collect { tasks.getByName("api")
it.tasks.getByName("jar")
}
} }
doFirst { doFirst {
classpath = subprojects.collect { project -> project.jar.outputs.files.getFiles() }.flatten() classpath = subprojects.collect { project -> project.jar.outputs.files.getFiles() }.flatten()
@ -69,6 +66,10 @@ dokka {
def kotlinDirs = project.sourceSets.main.kotlin.srcDirs.collect() def kotlinDirs = project.sourceSets.main.kotlin.srcDirs.collect()
kotlinDirs -= project.sourceSets.main.java.srcDirs kotlinDirs -= project.sourceSets.main.java.srcDirs
}) })
externalDocumentationLink {
url = new URL("https://docs.spring.io/spring-framework/docs/$version/javadoc-api/")
packageListUrl = new File(buildDir, "api/package-list").toURI().toURL()
}
externalDocumentationLink { externalDocumentationLink {
url = new URL("http://projectreactor.io/docs/core/release/api/") url = new URL("http://projectreactor.io/docs/core/release/api/")
} }

Loading…
Cancel
Save