You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/04/16 20:20:00 UTC

(grails-core) branch ci/hibernate-matrix-testing updated: chore(forge): move testcontainers version to gradle.properties

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

jamesfredley pushed a commit to branch ci/hibernate-matrix-testing
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/ci/hibernate-matrix-testing by this push:
     new cf6d9ceea5 chore(forge): move testcontainers version to gradle.properties
cf6d9ceea5 is described below

commit cf6d9ceea543d163cefc26182b4ae08150d19b86
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Thu Apr 16 16:19:55 2026 -0400

    chore(forge): move testcontainers version to gradle.properties
    
    Add testcontainersVersion=1.20.4 to grails-forge/gradle.properties and reference it via the property in both forge build.gradle files instead of the inline literal.
    
    Assisted-by: claude-code:claude-opus-4
---
 grails-forge/gradle.properties                            | 1 +
 grails-forge/grails-forge-analytics-postgres/build.gradle | 2 +-
 grails-forge/grails-forge-cli/build.gradle                | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/grails-forge/gradle.properties b/grails-forge/gradle.properties
index e0adeeda0b..0008fcb9a8 100644
--- a/grails-forge/gradle.properties
+++ b/grails-forge/gradle.properties
@@ -57,6 +57,7 @@ slf4jVersion=2.0.17
 snakeyamlVersion=2.4
 spockVersion=2.1-groovy-3.0
 spotlessVersion=6.25.0
+testcontainersVersion=1.20.4
 testRetryVersion=1.6.2
 typesafeConfigVersion=1.4.3
 
diff --git a/grails-forge/grails-forge-analytics-postgres/build.gradle b/grails-forge/grails-forge-analytics-postgres/build.gradle
index b54d9504c6..d89640336a 100644
--- a/grails-forge/grails-forge-analytics-postgres/build.gradle
+++ b/grails-forge/grails-forge-analytics-postgres/build.gradle
@@ -47,7 +47,7 @@ dependencies {
 
     testImplementation platform("io.micronaut:micronaut-bom:$micronautVersion")
     // The testcontainers BOM is not imported by micronaut-bom 3.10.4, so pin the version explicitly.
-    testImplementation platform('org.testcontainers:testcontainers-bom:1.20.4')
+    testImplementation platform("org.testcontainers:testcontainers-bom:$testcontainersVersion")
     testImplementation "ch.qos.logback:logback-classic:$logbackClassicVersion"
     testImplementation 'io.micronaut:micronaut-http-client'
     // The artifact is org.testcontainers:postgresql, not testcontainers-postgresql.
diff --git a/grails-forge/grails-forge-cli/build.gradle b/grails-forge/grails-forge-cli/build.gradle
index 617fb10b28..fad79b69dd 100644
--- a/grails-forge/grails-forge-cli/build.gradle
+++ b/grails-forge/grails-forge-cli/build.gradle
@@ -99,7 +99,7 @@ dependencies {
     testImplementation "org.reflections:reflections:$reflectionsVersion"
     // The testcontainers BOM is not imported by micronaut-bom 3.10.4, so pin the version explicitly.
     // Also: the published artifact id is org.testcontainers:spock, not testcontainers-spock.
-    testImplementation platform('org.testcontainers:testcontainers-bom:1.20.4')
+    testImplementation platform("org.testcontainers:testcontainers-bom:$testcontainersVersion")
     testImplementation 'org.testcontainers:spock'
     if (project.hasProperty('micronautVersion')) {
         testCompileOnly "io.micronaut:micronaut-inject-groovy:$micronautVersion"