Skip to content

Commit

Permalink
fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom…
Browse files Browse the repository at this point in the history
… to v7 (#569)

* fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom to v7

* use flyway mysql from flyway bom

* platform to 4.2.3

* test to 4.2.0

* Fix r2dbc build

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sergio del Amo <[email protected]>
Co-authored-by: radovanradic <[email protected]>
  • Loading branch information
3 people authored Jan 22, 2024
1 parent 95e6c6e commit 254abe1
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ dependencies {

runtimeOnly(libs.managed.r2dbc.mysql)
runtimeOnly(mnSql.mysql.connector.java)
runtimeOnly(libs.flyway.mysql)
runtimeOnly(mnFlyway.flyway.mysql)

testImplementation(mn.micronaut.http.client)
testImplementation(platform(libs.testcontainers))
testImplementation(libs.testcontainers.mysql)
testImplementation(mnTest.micronaut.test.core)

runtimeOnly mn.snakeyaml
}
}
8 changes: 8 additions & 0 deletions doc-examples/example-groovy/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ plugins {
micronaut {
testRuntime("spock")
}

dependencies {
annotationProcessor(mnSerde.micronaut.serde.processor)
compileOnly(mnSerde.micronaut.serde.processor)

testAnnotationProcessor(mnSerde.micronaut.serde.processor)
testImplementation(mnSerde.micronaut.serde.processor)
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class BookControllerTest extends Specification implements TestPropertyProvider {

@Override
Map<String, String> getProperties() {
container = new MySQLContainer<>(DockerImageName.parse("mysql").withTag("8"))
container = new MySQLContainer<>(DockerImageName.parse("mysql").withTag("8.2"))
container.start()
return CollectionUtils.mapOf(
"datasources.default.url", container.getJdbcUrl(),
Expand Down
5 changes: 5 additions & 0 deletions doc-examples/example-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ plugins {
id "java"
id "io.micronaut.build.internal.r2dbc-example"
}

dependencies {
annotationProcessor(mnSerde.micronaut.serde.processor)
testAnnotationProcessor(mnSerde.micronaut.serde.processor)
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void testListBooksMicronautData() {

@Override
public Map<String, String> getProperties() {
container = new MySQLContainer<>(DockerImageName.parse("mysql").withTag("8"));
container = new MySQLContainer<>(DockerImageName.parse("mysql").withTag("8.2"));
container.start();
return CollectionUtils.mapOf(
"datasources.default.url", container.getJdbcUrl(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class BookControllerTest : TestPropertyProvider {
}

override fun getProperties(): Map<String, String> {
container = MySQLContainer(DockerImageName.parse("mysql").withTag("8"))
container = MySQLContainer(DockerImageName.parse("mysql").withTag("8.2"))
container!!.start()
return mapOf(
"datasources.default.url" to container!!.jdbcUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class SomeEntityRepositoryTest : TestPropertyProvider {
}

override fun getProperties(): Map<String, String> {
container = MySQLContainer(DockerImageName.parse("mysql").withTag("8"))
container = MySQLContainer(DockerImageName.parse("mysql").withTag("8.2"))
container!!.start()
return mapOf(
"datasources.default.url" to container!!.jdbcUrl,
Expand Down
8 changes: 3 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[versions]
micronaut = "4.2.3"
micronaut-platform = "4.1.6"
micronaut-platform = "4.2.3"
micronaut-docs = "2.0.0"

micronaut-reactor = "3.2.1"
micronaut-rxjava2 = "2.2.1"
micronaut-serde = "2.7.0"
micronaut-test = "4.0.1"
micronaut-test = "4.2.0"
micronaut-kotlin = "4.1.0"
micronaut-data = "4.4.1"
micronaut-sql = "5.4.0"
micronaut-flyway = "6.2.1"
micronaut-flyway = "7.0.0"
micronaut-validation = "4.2.0"
micronaut-logging = "1.2.1"

Expand Down Expand Up @@ -67,8 +67,6 @@ managed-r2dbc-io-asyncer-mysql = { module = "io.asyncer:r2dbc-mysql", version.re
managed-r2dbc-mssql = { module = "io.r2dbc:r2dbc-mssql", version.ref = "managed-r2dbc-mssql" }
managed-r2dbc-postgresql = { module = "org.postgresql:r2dbc-postgresql", version.ref = "managed-r2dbc-postgresql" }

flyway-mysql = { module = "org.flywaydb:flyway-mysql" }

testcontainers-jdbc = { module = "org.testcontainers:jdbc" }
testcontainers-junit-jupiter = { module = "org.testcontainers:junit-jupiter" }
testcontainers-mariadb = { module = "org.testcontainers:mariadb" }
Expand Down

0 comments on commit 254abe1

Please sign in to comment.