Skip to content

Commit 310282e

Browse files
committed
Configure cross-links from webauthn-server-attestation JavaDoc to core JavaDoc
1 parent df930cf commit 310282e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,19 @@ subprojects { project ->
257257

258258
}
259259

260+
// Configure cross-links from webauthn-server-attestation JavaDoc to core JavaDoc
261+
project(':webauthn-server-attestation').tasks.javadoc {
262+
var coreProj = project(':webauthn-server-core')
263+
var coreJavadoc = coreProj.tasks.javadoc
264+
inputs.files coreJavadoc.outputs.files
265+
266+
// These links won't work locally, but they will work on developers.yubico.com
267+
options.linksOffline("../../webauthn-server-core/${coreProj.version}", "${coreJavadoc.destinationDir}")
268+
269+
// Use this instead for local testing
270+
//options.linksOffline("file://${coreJavadoc.destinationDir}", "${coreJavadoc.destinationDir}")
271+
}
272+
260273
// The root project has no sources, but the dependency platform also needs to be published as an artifact
261274
// See https://docs.gradle.org/current/userguide/java_platform_plugin.html
262275
// See https://github.com/Yubico/java-webauthn-server/issues/93#issuecomment-822806951

0 commit comments

Comments
 (0)