Browse Source

Link to the right Framework version in the KDoc

See gh-35211
pull/35215/head
Sébastien Deleuze 5 months ago
parent
commit
c2a162a48b
  1. 5
      buildSrc/src/main/java/org/springframework/build/KotlinConventions.java

5
buildSrc/src/main/java/org/springframework/build/KotlinConventions.java

@ -68,9 +68,10 @@ public class KotlinConventions {
.getByName(SourceSet.MAIN_SOURCE_SET_NAME) .getByName(SourceSet.MAIN_SOURCE_SET_NAME)
.getOutput()); .getOutput());
var externalDocumentationLinks = sourceSet.getExternalDocumentationLinks(); var externalDocumentationLinks = sourceSet.getExternalDocumentationLinks();
var springVersion = project.getVersion();
externalDocumentationLinks.register("spring-framework", spec -> { externalDocumentationLinks.register("spring-framework", spec -> {
spec.url("https://docs.spring.io/spring-framework/docs/current/javadoc-api/"); spec.url("https://docs.spring.io/spring-framework/docs/" + springVersion + "/javadoc-api/");
spec.packageListUrl("https://docs.spring.io/spring-framework/docs/current/javadoc-api/element-list"); spec.packageListUrl("https://docs.spring.io/spring-framework/docs/" + springVersion + "/javadoc-api/element-list");
}); });
externalDocumentationLinks.register("reactor-core", spec -> externalDocumentationLinks.register("reactor-core", spec ->
spec.url("https://projectreactor.io/docs/core/release/api/")); spec.url("https://projectreactor.io/docs/core/release/api/"));

Loading…
Cancel
Save