diff --git a/buildSrc/src/main/groovy/io.micronaut.build.internal.test-application.gradle b/buildSrc/src/main/groovy/io.micronaut.build.internal.test-application.gradle index 99aef5c8e..37985378b 100644 --- a/buildSrc/src/main/groovy/io.micronaut.build.internal.test-application.gradle +++ b/buildSrc/src/main/groovy/io.micronaut.build.internal.test-application.gradle @@ -10,7 +10,7 @@ micronaut { testRuntime "junit" testResources { clientTimeout = 180 - version = libs.versions.micronaut.testresources.get() + version = libs.versions.micronaut.test.resources.get() } } @@ -18,8 +18,7 @@ dependencies { runtimeOnly mnLogging.logback.classic implementation mn.micronaut.http.client testImplementation mnTest.micronaut.test.core - testImplementation(libs.testcontainers.jdbc) - testImplementation(platform(libs.testcontainers.bom)) + testImplementation(mnTestResources.testcontainers.jdbc) micronautBoms(platform(mn.micronaut.core.bom)) micronautBoms(platform(mnData.micronaut.data.bom)) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4502fd08c..7be3fb289 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,12 +5,13 @@ micronaut = "4.3.4" micronaut-docs = "2.0.0" micronaut-gradle-plugin = "4.3.2" -micronaut-testresources = "2.3.3" +micronaut-test-resources = "2.3.3" # Platform dependencies micronaut-cache = "4.2.1" micronaut-data = "4.6.0" micronaut-hibernate-validator = "4.2.0" +micronaut-logging = "1.2.3" micronaut-micrometer = "5.4.0" micronaut-r2dbc = "5.3.0" micronaut-reactor = "3.2.1" @@ -57,23 +58,15 @@ sfm-reflect = "8.2.3" # Needed for vertx pg client and micronaut-data hibernate reactive managed-ongres-scram = "2.1" -# Logback - -logback = "1.4.6" - # Testing groovy = "4.0.11" -testcontainers = "1.19.4" sonar-gradle-plugin = "4.4.1.3373" -micronaut-logging = "1.2.3" [libraries] # Core micronaut-core = { module = 'io.micronaut:micronaut-core-bom', version.ref = 'micronaut' } -micronaut-logging = { module = "io.micronaut.logging:micronaut-logging-bom", version.ref = "micronaut-logging" } - # Platform catalogs micronaut-cache = { module = "io.micronaut.cache:micronaut-cache-bom", version.ref = "micronaut-cache" } @@ -84,6 +77,7 @@ micronaut-r2dbc = { module = "io.micronaut.r2dbc:micronaut-r2dbc-bom", version.r micronaut-serde = { module = "io.micronaut.serde:micronaut-serde-bom", version.ref = "micronaut-serde" } micronaut-spring = { module = "io.micronaut.spring:micronaut-spring-bom", version.ref = "micronaut-spring" } micronaut-test = { module = "io.micronaut.test:micronaut-test-bom", version.ref = "micronaut-test" } +micronaut-test-resources = { module = "io.micronaut.testresources:micronaut-test-resources-bom", version.ref = "micronaut-test-resources" } micronaut-validation = { module = "io.micronaut.validation:micronaut-validation-bom", version.ref = "micronaut-validation" } # Switch to BOM and catalog import when there's a bom @@ -155,20 +149,9 @@ managed-jakarta-transaction-api = { module = "jakarta.transaction:jakarta.transa sfm-reflect = { module = "org.simpleflatmapper:sfm-reflect", version.ref = "sfm-reflect" } managed-ongres-scram-client = { module = "com.ongres.scram:client", version.ref = "managed-ongres-scram" } -# Testcontainers - -testcontainers-bom = { module = "org.testcontainers:testcontainers-bom", version.ref = "testcontainers" } -testcontainers-jdbc = { module = "org.testcontainers:jdbc" } -testcontainers-mariadb = { module = "org.testcontainers:mariadb" } -testcontainers-mssqlserver = { module = "org.testcontainers:mssqlserver" } -testcontainers-mysql = { module = "org.testcontainers:mysql" } -testcontainers-oracle-xe = { module = "org.testcontainers:oracle-xe" } -testcontainers-postgresql = { module = "org.testcontainers:postgresql" } -testcontainers-spock = { module = "org.testcontainers:spock" } - # Testresources -micronaut-testresources-client = { module = 'io.micronaut.testresources:micronaut-test-resources-client', version.ref = "micronaut-testresources" } +micronaut-testresources-client = { module = 'io.micronaut.testresources:micronaut-test-resources-client', version.ref = "micronaut-test-resources" } #PLUGINS diff --git a/hibernate-reactive/build.gradle b/hibernate-reactive/build.gradle index f81129927..1f79ab570 100644 --- a/hibernate-reactive/build.gradle +++ b/hibernate-reactive/build.gradle @@ -22,10 +22,8 @@ dependencies { testRuntimeOnly projects.micronautJdbcTomcat testRuntimeOnly(libs.managed.h2) - testImplementation(platform(libs.testcontainers.bom)) - testImplementation libs.testcontainers.spock - testImplementation libs.testcontainers.jdbc - testImplementation libs.testcontainers.postgresql + testImplementation(mnTestResources.testcontainers.jdbc) + testImplementation(mnTestResources.testcontainers.postgres) testImplementation libs.managed.vertx.pg.client testImplementation(mnData.micronaut.data.tx.hibernate) } diff --git a/jasync-sql/build.gradle b/jasync-sql/build.gradle index 6b6c86eb3..b3d766a10 100644 --- a/jasync-sql/build.gradle +++ b/jasync-sql/build.gradle @@ -11,10 +11,8 @@ dependencies { compileOnly(libs.managed.jasync.postgresql) compileOnly(mn.micronaut.management) - testImplementation(platform(libs.testcontainers.bom)) testImplementation(mn.micronaut.management) - testImplementation(libs.testcontainers.spock) - testImplementation(libs.testcontainers.postgresql) + testImplementation(mnTestResources.testcontainers.postgres) testImplementation(libs.managed.jasync.postgresql) testImplementation(mn.micronaut.management) testImplementation(mn.micronaut.http.client) diff --git a/settings.gradle b/settings.gradle index d690940bd..f37f7ffb3 100644 --- a/settings.gradle +++ b/settings.gradle @@ -21,6 +21,7 @@ micronautBuild { importMicronautCatalog("micronaut-r2dbc") importMicronautCatalog("micronaut-serde") importMicronautCatalog("micronaut-spring") + importMicronautCatalog("micronaut-test-resources") importMicronautCatalog("micronaut-validation") } diff --git a/vertx-mysql-client/build.gradle b/vertx-mysql-client/build.gradle index 5bd549734..16df19b73 100644 --- a/vertx-mysql-client/build.gradle +++ b/vertx-mysql-client/build.gradle @@ -11,9 +11,7 @@ dependencies { compileOnly(mn.micronaut.management) - testImplementation(platform(libs.testcontainers.bom)) testImplementation(mn.micronaut.management) - testImplementation(libs.testcontainers.spock) - testImplementation(libs.testcontainers.mysql) + testImplementation(mnTestResources.testcontainers.mysql) testImplementation(libs.managed.mysql.connector.j) } diff --git a/vertx-pg-client/build.gradle b/vertx-pg-client/build.gradle index 607881c42..b957b75c1 100644 --- a/vertx-pg-client/build.gradle +++ b/vertx-pg-client/build.gradle @@ -12,8 +12,6 @@ dependencies { compileOnly(mn.micronaut.management) runtimeOnly libs.managed.ongres.scram.client - testImplementation(platform(libs.testcontainers.bom)) testImplementation(mn.micronaut.management) - testImplementation(libs.testcontainers.spock) - testImplementation(libs.testcontainers.postgresql) + testImplementation(mnTestResources.testcontainers.postgres) }