From e16a757b41ece317f057f6edaa5935e9c2c4537f Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Mon, 25 Sep 2023 20:56:37 +0200 Subject: [PATCH] [GH] Explicitly specify mvn-toolchain-id for setup JDKs to match BREEs The toolchains.xml generated by the setup-java GitHub action has '8' as 'version' value for the Java-1.8 JDK and therefore the tycho-compiler-plugin does not match it when has 'useJDK=BREE' configured for a Plugin with BREE JavaSE-1.8. Therefore explicitly set the 'id' of each jdk-toolchain to match the corresponding BREE identifier so that the tycho-compiler-plugin can find it via this secondary way. --- .github/workflows/mavenBuild.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/mavenBuild.yml b/.github/workflows/mavenBuild.yml index a0cf40cb765..a24ed2a3c35 100644 --- a/.github/workflows/mavenBuild.yml +++ b/.github/workflows/mavenBuild.yml @@ -56,6 +56,10 @@ jobs: 8 11 17 + mvn-toolchain-id: | + JavaSE-1.8 + JavaSE-11 + JavaSE-17 distribution: 'temurin' cache: maven - name: Set up Maven