From 14dc837b5831ba43479c4a76e814f796ee6b868f Mon Sep 17 00:00:00 2001 From: Scott Guest Date: Fri, 23 Feb 2024 03:22:08 -0800 Subject: [PATCH] Support Java 17 in `kore` submodule (#4032) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In #3736, we updated to Java 17 by configuring the Java version for `maven-compiler-plugin`. However - after banging my head against a wall for the past hour wondering why none of my code is parsing 🙃 - I realized that the `kore` and `matching` submodules are actually built by `scala-maven-plugin` rather than `maven-compiler-plugin`, and their Java version must be set independently. This PR sets the version for `kore` to Java 17, and runtimeverification/llvm-backend#993 will do the same for `matching`. --- kore/pom.xml | 6 ++++++ pom.xml | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/kore/pom.xml b/kore/pom.xml index a70d0a62f32..b98138dc0c3 100644 --- a/kore/pom.xml +++ b/kore/pom.xml @@ -79,6 +79,12 @@ -language:implicitConversions -language:postfixOps + + -source + ${java.version} + -target + ${java.version} + diff --git a/pom.xml b/pom.xml index cdde5db185b..305b92b4eb1 100644 --- a/pom.xml +++ b/pom.xml @@ -75,6 +75,7 @@ true UTF-8 FastBuild + 17 2.12 18 ${scala.majorVersion}.${scala.minorVersion} @@ -167,8 +168,8 @@ maven-compiler-plugin 3.7.0 - 17 - 17 + ${java.version} + ${java.version} @@ -248,7 +249,7 @@ - [11,) + [${java.version},)