Link to the right Framework version in the KDoc

See gh-35211
This commit is contained in:
Sébastien Deleuze 2025-07-17 09:58:01 +02:00
parent 8b4ff8c56b
commit c2a162a48b
1 changed files with 3 additions and 2 deletions

View File

@ -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/"));