test build with 18  (#126)

* test build with 18
* add maven matrix as well

Signed-off-by: Olivier Lamy <olamy@apache.org>
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index e5c93cb..103392e 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -24,7 +24,10 @@
 jobs:
   build:
     name: Verify
-    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2
+    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v3
     with:
-      jdk-distribution-matrix: '[ "temurin", "zulu", "microsoft", "liberica", "adopt-openj9" ]'
-      matrix-exclude: '[{ "jdk": "8", "distribution": "microsoft"}]'
+      # maven-args: "-Dinvoker.parallelThreads=2" cannot do this as this generate some concurrent download issues
+      jdk-distribution-matrix: '[ "temurin", "zulu", "microsoft", "adopt-openj9" ]'
+      jdk-matrix: '[ "8", "11", "17", "18" ]' # "19-ea"
+      matrix-exclude: '[{ "jdk": "8", "distribution": "microsoft"},{ "jdk": "19-ea", "distribution": "microsoft"},{ "jdk": "18", "distribution": "microsoft"},{ "jdk": "19-ea", "distribution": "adopt-openj9"},]'
+      maven-matrix: '[ "3.3.9", "3.6.3", "3.8.6" ]'  # Maven versions matrix for verify builds
diff --git a/src/it/MCOMPILER-349_dependencyChanged/pom.xml b/src/it/MCOMPILER-349_dependencyChanged/pom.xml
index 929d2dd..2d4e7f4 100644
--- a/src/it/MCOMPILER-349_dependencyChanged/pom.xml
+++ b/src/it/MCOMPILER-349_dependencyChanged/pom.xml
@@ -52,7 +52,7 @@
         <plugin>
           <groupId>org.codehaus.gmaven</groupId>
           <artifactId>groovy-maven-plugin</artifactId>
-          <version>2.0</version>
+          <version>2.1.1</version>
           <configuration>
             <source>
               def fileToModify = new File(project.basedir, 'service/src/main/java/TestService.java')
diff --git a/src/it/MCOMPILER-474_recompile-dependent-when-package/pom.xml b/src/it/MCOMPILER-474_recompile-dependent-when-package/pom.xml
index fd7035b..4915361 100644
--- a/src/it/MCOMPILER-474_recompile-dependent-when-package/pom.xml
+++ b/src/it/MCOMPILER-474_recompile-dependent-when-package/pom.xml
@@ -51,7 +51,7 @@
         <plugin>
           <groupId>org.codehaus.gmaven</groupId>
           <artifactId>groovy-maven-plugin</artifactId>
-          <version>2.0</version>
+          <version>2.1.1</version>
           <configuration>
             <source>
               def fileToModify = new File(project.basedir, 'service/src/main/java/TestService.java')
diff --git a/src/it/mcompiler-182/pom.xml b/src/it/mcompiler-182/pom.xml
index 32e8491..c1fc219 100644
--- a/src/it/mcompiler-182/pom.xml
+++ b/src/it/mcompiler-182/pom.xml
@@ -48,7 +48,7 @@
         <!-- Called as second invoker goal to simulate file adjustment -->
         <groupId>org.codehaus.gmaven</groupId>
         <artifactId>groovy-maven-plugin</artifactId>
-        <version>2.0</version>
+        <version>2.1.1</version>
         <configuration>
           <source>
             def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' )
diff --git a/src/it/mcompiler-21_class-remove/pom.xml b/src/it/mcompiler-21_class-remove/pom.xml
index e04756a..bcb5979 100644
--- a/src/it/mcompiler-21_class-remove/pom.xml
+++ b/src/it/mcompiler-21_class-remove/pom.xml
@@ -48,7 +48,7 @@
         <!-- Called as second invoker goal to simulate file adjustment -->
         <groupId>org.codehaus.gmaven</groupId>
         <artifactId>groovy-maven-plugin</artifactId>
-        <version>2.0</version>
+        <version>2.1.1</version>
         <configuration>
           <source>
             def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' )
diff --git a/src/it/mcompiler-21_methodname-change/pom.xml b/src/it/mcompiler-21_methodname-change/pom.xml
index 19c401a..9056902 100644
--- a/src/it/mcompiler-21_methodname-change/pom.xml
+++ b/src/it/mcompiler-21_methodname-change/pom.xml
@@ -48,7 +48,7 @@
         <!-- Called as second invoker goal to simulate file adjustment -->
         <groupId>org.codehaus.gmaven</groupId>
         <artifactId>groovy-maven-plugin</artifactId>
-        <version>2.0</version>
+        <version>2.1.1</version>
         <configuration>
           <source>
             def beanAFile = new File( project.basedir, 'src/main/java/BeanA.java' )