Skip to content

Commit

Permalink
Testcontainers via test-resources version catalog (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
wetted authored Feb 5, 2024
1 parent a96c2a1 commit 765af06
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion elasticsearch/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {

implementation(mn.micronaut.jackson.databind)

testImplementation(libs.testcontainers.elasticsearch)
testImplementation(mnTestResources.testcontainers.elasticsearch)
testImplementation(mn.groovy.json)
testImplementation(mnSecurity.micronaut.security)
testImplementation(mn.reactor)
Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ micronaut-platform = "4.0.0-RC1"
micronaut-security = "4.5.0"
micronaut-logging = "1.0.0"
micronaut-test = "4.0.0"
micronaut-test-resources="2.3.2"
micronaut-gradle-plugin = "4.2.1"
managed-elasticsearch = "8.12.0"

graal-svm = "23.1.2"
groovy = "4.0.15"
spock = "2.3-groovy-4.0"
testcontainers = "1.19.3"
slf4j = "2.0.11"
awaitility = "4.2.0"
apache-http-client = "4.5.14"
Expand All @@ -22,13 +22,14 @@ apache-http-async-client = "4.1.5"
micronaut-core = { module = 'io.micronaut:micronaut-core-bom', version.ref = 'micronaut' }

micronaut-security = { module = "io.micronaut.security:micronaut-security-bom", version.ref = "micronaut-security" }
micronaut-test-resources = { module = "io.micronaut.testresources:micronaut-test-resources-bom", version.ref = "micronaut-test-resources" }

jcl-over-slf4j = { module = "org.slf4j:jcl-over-slf4j", version.ref = "slf4j" }
managed-elasticsearch-java = { module = "co.elastic.clients:elasticsearch-java", version.ref = "managed-elasticsearch" }
managed-elasticsearch-rest-client = { module = "org.elasticsearch.client:elasticsearch-rest-client", version.ref = "managed-elasticsearch" }
apache-http-client = { module = "org.apache.httpcomponents:httpclient", version.ref = "apache-http-client" }
apache-http-async-client = { module = "org.apache.httpcomponents:httpasyncclient", version.ref = "apache-http-async-client" }
graal-svm = { module = "org.graalvm.nativeimage:svm", version.ref = "graal-svm" }

testcontainers-elasticsearch = { module = "org.testcontainers:elasticsearch", version.ref = "testcontainers" }
awaitility = { module = "org.awaitility:awaitility", version.ref = "awaitility" }
gradle-micronaut = { module = "io.micronaut.gradle:micronaut-gradle-plugin", version.ref = "micronaut-gradle-plugin" }
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ micronautBuild {
useStandardizedProjectNames = true
importMicronautCatalog()
importMicronautCatalog("micronaut-security")
importMicronautCatalog("micronaut-test-resources")
}
2 changes: 1 addition & 1 deletion test-suite-groovy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
testImplementation(mnTest.micronaut.test.spock)

// tag::testcontainers-dependencies[]
testImplementation(libs.testcontainers.elasticsearch)
testImplementation(mnTestResources.testcontainers.elasticsearch)
// end::testcontainers-dependencies[]
testImplementation(libs.apache.http.client)
testImplementation(libs.apache.http.async.client)
Expand Down

0 comments on commit 765af06

Please sign in to comment.