Skip to content

Commit

Permalink
Merge pull request #1051 from grails/prevent-spring-security-core-dow…
Browse files Browse the repository at this point in the history
…ngrade

document how to avoid spring-security-core downgrade
  • Loading branch information
jamesfredley authored Jan 2, 2025
2 parents efd1e60 + aac5574 commit 820d931
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle/docs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/docs/introduction/configGroovy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
}
----
2 changes: 2 additions & 0 deletions plugin/src/docs/introduction/gettingStarted.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/docs/introduction/installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
}
----
+
Expand Down
4 changes: 3 additions & 1 deletion plugin/src/docs/tutorials/usingControllerAnnotations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
...
}
----
Expand Down

0 comments on commit 820d931

Please sign in to comment.