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