This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch published-dependency-cleanup
in repository https://gitbox.apache.org/repos/asf/grails-spring-security.git

commit 01ee69250f9e859fcfbee7cc0e892a5ba6a25fae
Author: James Fredley <[email protected]>
AuthorDate: Thu Oct 9 12:44:22 2025 -0400

    Refactor dependencies to use version variables
    
    Updated build.gradle files to reference dependency versions from 
gradle.properties using variables for scribejava, nimbus-jose-jwt, guava, and 
gbench. Added missing version variables to gradle.properties for improved 
maintainability and consistency.
---
 gradle.properties                             | 4 ++++
 plugin-oauth2/plugin/build.gradle             | 2 +-
 plugin-rest/spring-security-rest/build.gradle | 6 +++---
 3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/gradle.properties b/gradle.properties
index 33472217..24155860 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -26,12 +26,16 @@ asciidoctorGradlePluginVersion=4.0.4
 casClientCoreVersion=4.0.4
 commonsLangVersion=2.6
 dumbsterVersion=1.6
+gbenchVersion=0.4.3-groovy-2.4
 gradleCryptoChecksumVersion=1.4.0
 grailsRedisVersion=5.0.0-RC2
+guavaVersion=33.3.1-jre
 mailVersion=5.0.0
 micronautVersion=4.5.3
+nimbusVersion=9.42
 pac4jVersion=6.0.6
 ratVersion=0.8.1
+scribejavaVersion=8.3.3
 spyMemcachedVersion=2.12.3
 
 # This prevents the Grails Gradle Plugin from unnecessarily excluding 
slf4j-simple in the generated POMs
diff --git a/plugin-oauth2/plugin/build.gradle 
b/plugin-oauth2/plugin/build.gradle
index 8cc02387..afff874e 100644
--- a/plugin-oauth2/plugin/build.gradle
+++ b/plugin-oauth2/plugin/build.gradle
@@ -50,7 +50,7 @@ dependencies {
                // impl: GormUserDetailsService, GrailsUser, ReflectionUtils, 
@Secured(runtime), SecurityContextHolder,
                //       SpringSecurityUtils
        }
-       api 'com.github.scribejava:scribejava-core:8.3.3', {
+       api "com.github.scribejava:scribejava-core:$scribejavaVersion", {
                // api: DefaultApi20, OAuth2AccessToken, OAuth20Service, 
Response
                // impl: OAuthRequest, ServiceBuilder, Verb
        }
diff --git a/plugin-rest/spring-security-rest/build.gradle 
b/plugin-rest/spring-security-rest/build.gradle
index 14e99429..bc9b328b 100644
--- a/plugin-rest/spring-security-rest/build.gradle
+++ b/plugin-rest/spring-security-rest/build.gradle
@@ -47,7 +47,7 @@ dependencies {
         // api: NullAuthenticationEventPublisher, SecurityEventListener
         // impl: BeanTypeResolver, @Secured(runtime), SecurityFilterPosition, 
SpringSecurityUtils
     }
-    api 'com.nimbusds:nimbus-jose-jwt:9.42', {
+    api "com.nimbusds:nimbus-jose-jwt:$nimbusVersion", {
         // api: EncryptionMethod, JOSEException, JWEAlgorithm, JWSAlgorithm, 
JWSSigner, JWT, JWTClaimsSet
         // impl: EncryptedJWT, EncryptionMethod, JWEHeader, JWSHeader, 
JWTParser, MACSigner, MACVerifier, PlainJWT, RSADecrypter, RSAEncrypter, 
SignedJWT
     }
@@ -90,7 +90,7 @@ dependencies {
     implementation "org.apache.commons:commons-lang3", {
         // impl: RandomStringUtils
     }
-    implementation 'com.google.guava:guava:33.3.1-jre', {
+    implementation "com.google.guava:guava:$guavaVersion", {
         // impl: CacheBuilder, LoadingCache
     }
     implementation 'commons-codec:commons-codec', {
@@ -125,7 +125,7 @@ dependencies {
     testImplementation "org.pac4j:pac4j-oauth:$pac4jVersion", {
         // impl: CasOAuthWrapperClient
     }
-    testImplementation 'org.gperfutils:gbench:0.4.3-groovy-2.4'
+    testImplementation "org.gperfutils:gbench:$gbenchVersion"
     testImplementation 'org.apache.grails:grails-testing-support-datamapping'
     testImplementation 'org.apache.grails:grails-testing-support-web'
     testImplementation 'org.spockframework:spock-core'

Reply via email to