Skip to content

Commit 239fa03

Browse files
committed
Remove trailing slashes from all link URLs
Closes gh-43518
1 parent aead737 commit 239fa03

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

buildSrc/src/main/java/org/springframework/boot/build/antora/AntoraAsciidocAttributes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ private void addArtifactAttributes(Map<String, String> attributes) {
202202
}
203203

204204
private void addUrlJava(Map<String, String> attributes) {
205-
attributes.put("url-javase-javadoc", "https://docs.oracle.com/en/java/javase/17/docs/api/");
205+
attributes.put("url-javase-javadoc", "https://docs.oracle.com/en/java/javase/17/docs/api");
206206
attributes.put("javadoc-location-java-beans", "{url-javase-javadoc}/java.desktop");
207207
attributes.put("javadoc-location-java-lang", "{url-javase-javadoc}/java.base");
208208
attributes.put("javadoc-location-java-net", "{url-javase-javadoc}/java.base");

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ bom {
8686
]
8787
}
8888
links {
89-
site("https://assertj.github.io/doc/")
89+
site("https://assertj.github.io/doc")
9090
releaseNotes("https://github.com/assertj/assertj/releases/tag/assertj-build-{version}")
9191
}
9292
}
@@ -145,7 +145,7 @@ bom {
145145
]
146146
}
147147
links {
148-
site("https://bytebuddy.net/")
148+
site("https://bytebuddy.net")
149149
docs("https://bytebuddy.net/#/tutorial")
150150
releaseNotes("https://github.com/raphw/byte-buddy/releases/tag/byte-buddy-{version}")
151151
}
@@ -298,7 +298,7 @@ bom {
298298
}
299299
links {
300300
site("https://github.com/spring-gradle-plugins/dependency-management-plugin")
301-
docs("https://docs.spring.io/dependency-management-plugin/docs/{version}/reference/html/")
301+
docs("https://docs.spring.io/dependency-management-plugin/docs/{version}/reference/html")
302302
releaseNotes("https://github.com/spring-gradle-plugins/dependency-management-plugin/releases/tag/v{version}")
303303
}
304304
}
@@ -333,7 +333,7 @@ bom {
333333
]
334334
}
335335
links {
336-
site("https://www.ehcache.org/")
336+
site("https://www.ehcache.org")
337337
releaseNotes("https://github.com/ehcache/ehcache3/releases/tag/v{version}")
338338
}
339339
}
@@ -449,7 +449,7 @@ bom {
449449
]
450450
}
451451
links {
452-
site("https://www.graphql-java.com/")
452+
site("https://www.graphql-java.com")
453453
javadoc("https://javadoc.io/doc/com.graphql-java/graphql-java/{version}", "graphql.schema", "graphql.execution")
454454
releaseNotes("https://github.com/graphql-java/graphql-java/releases/tag/v{version}")
455455
}
@@ -509,7 +509,7 @@ bom {
509509
}
510510
links {
511511
site("https://hazelcast.com")
512-
javadoc("https://docs.hazelcast.org/docs/{version}/javadoc/", "com.hazelcast")
512+
javadoc("https://docs.hazelcast.org/docs/{version}/javadoc", "com.hazelcast")
513513
releaseNotes("https://github.com/hazelcast/hazelcast/releases/tag/v{version}")
514514
}
515515
}
@@ -630,7 +630,7 @@ bom {
630630
]
631631
}
632632
links {
633-
site("https://infinispan.org/")
633+
site("https://infinispan.org")
634634
javadoc(version -> "https://docs.jboss.org/infinispan/%s.%s/apidocs".formatted(version.major(), version.minor()), "org.infinispan")
635635
releaseNotes("https://github.com/infinispan/infinispan/releases/tag/{version}")
636636
}
@@ -1138,7 +1138,7 @@ bom {
11381138
]
11391139
}
11401140
links {
1141-
site("https://kotlinlang.org/")
1141+
site("https://kotlinlang.org")
11421142
docs("https://kotlinlang.org/docs/reference")
11431143
releaseNotes("https://github.com/JetBrains/kotlin/releases/tag/v{version}")
11441144
}
@@ -1228,7 +1228,7 @@ bom {
12281228
}
12291229
links {
12301230
site("https://projectlombok.org")
1231-
javadoc("https://projectlombok.org/api/")
1231+
javadoc("https://projectlombok.org/api")
12321232
}
12331233
}
12341234
library("MariaDB", "3.3.3") {
@@ -1238,8 +1238,8 @@ bom {
12381238
]
12391239
}
12401240
links {
1241-
site("https://mariadb.com/kb/en/mariadb-connector-j/")
1242-
releaseNotes(version -> "https://mariadb.com/kb/en/mariadb-connector-j-%s-release-notes/"
1241+
site("https://mariadb.com/kb/en/mariadb-connector-j")
1242+
releaseNotes(version -> "https://mariadb.com/kb/en/mariadb-connector-j-%s-release-notes"
12431243
.formatted(version.toString("-")))
12441244
}
12451245
}
@@ -1463,7 +1463,7 @@ bom {
14631463
]
14641464
}
14651465
links {
1466-
site("https://site.mockito.org/")
1466+
site("https://site.mockito.org")
14671467
releaseNotes("https://github.com/mockito/mockito/releases/tag/v{version}")
14681468
}
14691469
}
@@ -1871,7 +1871,7 @@ bom {
18711871
}
18721872
links {
18731873
site("https://github.com/rabbitmq/rabbitmq-java-client")
1874-
javadoc("https://rabbitmq.github.io/rabbitmq-java-client/api/current/", "com.rabbitmq")
1874+
javadoc("https://rabbitmq.github.io/rabbitmq-java-client/api/current", "com.rabbitmq")
18751875
releaseNotes("https://github.com/rabbitmq/rabbitmq-java-client/releases/tag/v{version}")
18761876
}
18771877
}
@@ -1902,7 +1902,7 @@ bom {
19021902
]
19031903
}
19041904
links {
1905-
site("https://projectreactor.io/")
1905+
site("https://projectreactor.io")
19061906
releaseNotes("https://github.com/reactor/reactor/releases/tag/{version}")
19071907
}
19081908
}
@@ -2283,7 +2283,7 @@ bom {
22832283
links {
22842284
site("https://spring.io/projects/spring-pulsar")
22852285
github("https://github.com/spring-projects/spring-pulsar")
2286-
javadoc(version -> "https://docs.spring.io/spring-pulsar/docs/%s/api/"
2286+
javadoc(version -> "https://docs.spring.io/spring-pulsar/docs/%s/api"
22872287
.formatted(version.forMajorMinorGeneration()), "org.springframework.pulsar")
22882288
docs(version -> "https://docs.spring.io/spring-pulsar/docs/%s/reference"
22892289
.formatted(version.forMajorMinorGeneration()))
@@ -2300,9 +2300,9 @@ bom {
23002300
links {
23012301
site("https://spring.io/projects/spring-restdocs")
23022302
github("https://github.com/spring-projects/spring-restdocs")
2303-
javadoc(version -> "https://docs.spring.io/spring-restdocs/docs/%s/api/"
2303+
javadoc(version -> "https://docs.spring.io/spring-restdocs/docs/%s/api"
23042304
.formatted(version.forMajorMinorGeneration()), "org.springframework.restdocs")
2305-
docs(version -> "https://docs.spring.io/spring-restdocs/docs/%s/reference/htmlsingle/"
2305+
docs(version -> "https://docs.spring.io/spring-restdocs/docs/%s/reference/htmlsingle"
23062306
.formatted(version.forMajorMinorGeneration()))
23072307
releaseNotes("https://github.com/spring-projects/spring-restdocs/releases/tag/v{version}")
23082308
}
@@ -2406,7 +2406,7 @@ bom {
24062406
]
24072407
}
24082408
links {
2409-
site("https://www.thymeleaf.org/")
2409+
site("https://www.thymeleaf.org")
24102410
javadoc("thymeleaf", version -> "https://www.thymeleaf.org/apidocs/thymeleaf/%s".formatted(version), "org.thymeleaf")
24112411
javadoc("thymeleaf-spring6", version -> "https://www.thymeleaf.org/apidocs/thymeleaf-spring6/%s".formatted(version), "org.thymeleaf.spring6")
24122412
releaseNotes("https://github.com/thymeleaf/thymeleaf/releases/tag/thymeleaf-{version}")

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ javadoc {
160160
splitIndex = true
161161
use = true
162162
windowTitle = "Spring Boot Gradle Plugin ${project.version} API"
163-
links "https://docs.gradle.org/$gradle.gradleVersion/javadoc/"
164-
links "https://docs.oracle.com/en/java/javase/17/docs/api/"
163+
links "https://docs.gradle.org/$gradle.gradleVersion/javadoc"
164+
links "https://docs.oracle.com/en/java/javase/17/docs/api"
165165
}
166166
}
167167

0 commit comments

Comments
 (0)