From 29725ec68a0a15c77323063c4db0df5da35a0e78 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 18 Nov 2021 11:59:48 +0000 Subject: [PATCH] Update links to Spring Security's reference docs Closes gh-28618 --- spring-boot-project/spring-boot-docs/build.gradle | 4 +++- .../spring-boot-docs/src/docs/asciidoc/attributes.adoc | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/build.gradle b/spring-boot-project/spring-boot-docs/build.gradle index e2d67fde51..4aa778fc41 100644 --- a/spring-boot-project/spring-boot-docs/build.gradle +++ b/spring-boot-project/spring-boot-docs/build.gradle @@ -257,7 +257,9 @@ tasks.withType(org.asciidoctor.gradle.jvm.AbstractAsciidoctorTask) { doFirst { def versionConstraints = dependencyVersions.versionConstraints def securityVersion = versionConstraints["org.springframework.security:spring-security-core"] - securityVersion = securityVersion.substring(0, securityVersion.lastIndexOf(".")) + if (securityVersion.endsWith("-SNAPSHOT")) { + securityVersion = securityVersion.substring(0, securityVersion.length() - "-SNAPSHOT".length()) + } attributes "embedded-mongo-version": versionConstraints["de.flapdoodle.embed:de.flapdoodle.embed.mongo"], "jetty-version": versionConstraints["org.eclipse.jetty:jetty-server"], "jooq-version": versionConstraints["org.jooq:jooq"], diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc index 01345265bd..3ba8afc70c 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc @@ -86,7 +86,7 @@ :spring-kafka-docs: https://docs.spring.io/spring-kafka/docs/{spring-kafka-version}/reference/html/ :spring-restdocs: https://spring.io/projects/spring-restdocs :spring-security: https://spring.io/projects/spring-security -:spring-security-docs: https://docs.spring.io/spring-security/{spring-security-version} +:spring-security-docs: https://docs.spring.io/spring-security/reference/{spring-security-version} :spring-security-oauth2: https://spring.io/projects/spring-security-oauth :spring-security-oauth2-docs: https://projects.spring.io/spring-security-oauth/docs/oauth2.html :spring-session: https://spring.io/projects/spring-session