]> git.basschouten.com Git - openhab-addons.git/commitdiff
Add Java 17 to GHA CI build matrix (#12360)
authorWouter Born <github@maindrain.net>
Thu, 24 Feb 2022 09:55:20 +0000 (10:55 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Feb 2022 09:55:20 +0000 (10:55 +0100)
This adds Java 17 to the GitHub Actions CI build matrix so we can make sure the build keeps working with both Java 11 and Java 17.
It also updates the required Java version range used by the enforcer plugin so it is also possible to build with the supported Java versions.

Signed-off-by: Wouter Born <github@maindrain.net>
.github/workflows/ci-build.yml
pom.xml

index 24c0cc756f00d3b58ae71d26a3842fb02a132976..17f0dc0d886298e004e9cb2877d416e9ad7de0f8 100644 (file)
@@ -17,7 +17,7 @@ jobs:
   build:
     strategy:
       matrix:
-        java: [ '11' ]
+        java: [ '11', '17' ]
         maven: [ '3.8.4']
         os: [ 'ubuntu-20.04' ]
     name: Build (Java ${{ matrix.java }}, ${{ matrix.os }})
diff --git a/pom.xml b/pom.xml
index 299cf0cd22b44adf478a54e0ee2d5433c6678804..129126d5bdf6b21fdad26357b73c8a488a91e52d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -680,7 +680,7 @@ Import-Package: \\
             <configuration>
               <rules>
                 <requireJavaVersion>
-                  <version>[11.0,12.0)</version>
+                  <version>[11.0,18.0)</version>
                 </requireJavaVersion>
               </rules>
             </configuration>