Skip to content

Commit

Permalink
Fix r2dbc build
Browse files Browse the repository at this point in the history
  • Loading branch information
radovanradic committed Jan 22, 2024
1 parent 00f2aae commit 744ed65
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 4 deletions.
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

0 comments on commit 744ed65

Please sign in to comment.