From 744ed656ee3661262de88c6626e64108def394e4 Mon Sep 17 00:00:00 2001
From: radovanradic <radicr@gmail.com>
Date: Mon, 22 Jan 2024 13:46:16 +0100
Subject: [PATCH] Fix r2dbc build

---
 doc-examples/example-groovy/build.gradle.kts              | 8 ++++++++
 .../src/test/groovy/example/BookControllerTest.groovy     | 2 +-
 doc-examples/example-java/build.gradle                    | 5 +++++
 .../src/test/java/example/BookControllerTest.java         | 2 +-
 .../src/test/kotlin/example/BookControllerTest.kt         | 2 +-
 .../src/test/kotlin/example/SomeEntityRepositoryTest.kt   | 2 +-
 6 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/doc-examples/example-groovy/build.gradle.kts b/doc-examples/example-groovy/build.gradle.kts
index 8e3ec8702..af4e81c4c 100644
--- a/doc-examples/example-groovy/build.gradle.kts
+++ b/doc-examples/example-groovy/build.gradle.kts
@@ -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)
+}
diff --git a/doc-examples/example-groovy/src/test/groovy/example/BookControllerTest.groovy b/doc-examples/example-groovy/src/test/groovy/example/BookControllerTest.groovy
index e42fe767d..e463a98cd 100644
--- a/doc-examples/example-groovy/src/test/groovy/example/BookControllerTest.groovy
+++ b/doc-examples/example-groovy/src/test/groovy/example/BookControllerTest.groovy
@@ -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(),
diff --git a/doc-examples/example-java/build.gradle b/doc-examples/example-java/build.gradle
index 222545914..44e573f3b 100644
--- a/doc-examples/example-java/build.gradle
+++ b/doc-examples/example-java/build.gradle
@@ -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)
+}
diff --git a/doc-examples/example-java/src/test/java/example/BookControllerTest.java b/doc-examples/example-java/src/test/java/example/BookControllerTest.java
index 2dc17fa44..a03540d42 100644
--- a/doc-examples/example-java/src/test/java/example/BookControllerTest.java
+++ b/doc-examples/example-java/src/test/java/example/BookControllerTest.java
@@ -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(),
diff --git a/doc-examples/example-kotlin/src/test/kotlin/example/BookControllerTest.kt b/doc-examples/example-kotlin/src/test/kotlin/example/BookControllerTest.kt
index 95798deb0..28cfcf8e5 100644
--- a/doc-examples/example-kotlin/src/test/kotlin/example/BookControllerTest.kt
+++ b/doc-examples/example-kotlin/src/test/kotlin/example/BookControllerTest.kt
@@ -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,
diff --git a/doc-examples/example-kotlin/src/test/kotlin/example/SomeEntityRepositoryTest.kt b/doc-examples/example-kotlin/src/test/kotlin/example/SomeEntityRepositoryTest.kt
index 46ae146fb..87bf92516 100644
--- a/doc-examples/example-kotlin/src/test/kotlin/example/SomeEntityRepositoryTest.kt
+++ b/doc-examples/example-kotlin/src/test/kotlin/example/SomeEntityRepositoryTest.kt
@@ -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,