Skip to content

Commit 937de7e

Browse files
committed
change path for local build
1 parent 71b4dd2 commit 937de7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.javadoc-conventions.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ tasks.javadoc {
4242

4343
doLast {
4444
val isCI = System.getenv("CI") != null
45+
val version = project.version.toString().replace("-SNAPSHOT", "")
4546
val targetString = "https://docs.junit.org/current"
4647

4748
val replacementString = if (isCI) {
48-
val versionNoSnapshot = project.version.toString().replace("-SNAPSHOT", "")
49-
"https://docs.junit.org/$versionNoSnapshot"
49+
"https://docs.junit.org/$version"
5050
} else {
51-
"http://localhost:8080/user-guide"
51+
"/junit-framework/documentation/build/antora-site/$version"
5252
}
5353

5454
destinationDir?.walkTopDown()

0 commit comments

Comments
 (0)