Link to the right Framework version in the KDoc
See gh-35211
This commit is contained in:
parent
8b4ff8c56b
commit
c2a162a48b
|
@ -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…
Reference in New Issue