We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f8405f commit 966a345Copy full SHA for 966a345
documentation/documentation.gradle.kts
@@ -395,6 +395,16 @@ tasks {
395
externalModulesWithoutModularJavadoc.forEach { (moduleName, baseUrl) ->
396
result = result.replace("${baseUrl}$moduleName/", baseUrl)
397
}
398
+
399
+ val version = project.version.toString().replace("-SNAPSHOT", "")
400
+ val localAntoraPath = layout.buildDirectory.dir("antora-site").get().asFile.toURI().resolve("$version").toString()
401
+ val isReleaseBuild = System.getenv("CI") == "true"
402
+ result = result.replace(
403
+ "https://docs.junit.org/current",
404
+ if (isReleaseBuild) "https://docs.junit.org/$version"
405
+ else localAntoraPath
406
+ )
407
408
return@filter result
409
410
0 commit comments