diff --git a/gradle/docs.gradle b/gradle/docs.gradle index 8984f8ff..e8040415 100644 --- a/gradle/docs.gradle +++ b/gradle/docs.gradle @@ -9,6 +9,7 @@ def softwareVersion = SoftwareVersion.build(version.toString()) def asciidoctorAttributes = [ stableversion : softwareVersion.stableVersion, snapshotversion : softwareVersion.snapshotVersion, + springsecuritycoreversion : libs.versions.spring.security.get(), copyright : 'Apache License, Version 2.0', docinfo1 : 'true', doctype : 'book', diff --git a/plugin/src/docs/introduction/configGroovy.adoc b/plugin/src/docs/introduction/configGroovy.adoc index b1fd759b..b55561af 100644 --- a/plugin/src/docs/introduction/configGroovy.adoc +++ b/plugin/src/docs/introduction/configGroovy.adoc @@ -26,5 +26,7 @@ dependencies { implementation 'org.grails.plugins:cxf:3.1.1' // CXF above security. implementation 'org.grails.plugins:spring-security-core:{stableversion}' + // required for Grails 6, since spring-boot-dependencies:2.7.18 downgrades + implementation 'org.springframework.security:spring-security-core:{springsecuritycoreversion}' } ---- \ No newline at end of file diff --git a/plugin/src/docs/introduction/gettingStarted.adoc b/plugin/src/docs/introduction/gettingStarted.adoc index 58635709..ba0ffbec 100644 --- a/plugin/src/docs/introduction/gettingStarted.adoc +++ b/plugin/src/docs/introduction/gettingStarted.adoc @@ -10,6 +10,8 @@ Begin by installing the Spring Security plugin into your Grails project. Add the [source,gradle,subs="+attributes"] ---- implementation 'org.grails.plugins:spring-security-core:{stableversion}' +// required for Grails 6, since spring-boot-dependencies:2.7.18 downgrades +implementation 'org.springframework.security:spring-security-core:{springsecuritycoreversion}' ---- .Step 2: Run the Initialization Script diff --git a/plugin/src/docs/introduction/installation.adoc b/plugin/src/docs/introduction/installation.adoc index 398f2a49..ce5d20f5 100644 --- a/plugin/src/docs/introduction/installation.adoc +++ b/plugin/src/docs/introduction/installation.adoc @@ -22,6 +22,8 @@ Ensure you have the following set up: dependencies { // ... other dependencies implementation 'org.grails.plugins:spring-security-core:{stableversion}' + // required for Grails 6, since spring-boot-dependencies:2.7.18 downgrades + implementation 'org.springframework.security:spring-security-core:{springsecuritycoreversion}' } ---- + diff --git a/plugin/src/docs/tutorials/usingControllerAnnotations.adoc b/plugin/src/docs/tutorials/usingControllerAnnotations.adoc index 27bd9aec..43874cce 100644 --- a/plugin/src/docs/tutorials/usingControllerAnnotations.adoc +++ b/plugin/src/docs/tutorials/usingControllerAnnotations.adoc @@ -14,7 +14,9 @@ $ cd bookstore ---- dependencies { ... - compile 'org.grails.plugins:spring-security-core:{project-version}' + implementation 'org.grails.plugins:spring-security-core:{project-version}' + // required for Grails 6, since spring-boot-dependencies:2.7.18 downgrades + implementation 'org.springframework.security:spring-security-core:{springsecuritycoreversion}' ... } ----