Drools 7.x works just fine with Java 1.8.
As you can see GHA is setup to use Java 1.8 and that demo application using Drools 7.73.0.Final is working just fine. Screenshot attached too.
The above is a first empirical evidence your original claim is invalid.
What you pointed out in your original email is the JDK used to produce the .jar artifact, and the Jenkins used in Red Hat uses a Red-Hat supported JDK distribution.
As a reminder, you can use a more recent JDK version and to compile for a previous Java version (for as long as your java source code does not use the more recent Java features).
That is the case, as we CI with Java 11 and 8, but we produce for Java 8.
But you can verify for yourself by digging more.
If you follow the steps in the
readme:
unzip -p kie-api-7.73.0.Final.jar org/kie/api/runtime/KieContainer.class > KieContainer.class
javap -verbose KieContainer.class
You can notice the KieContainer.class that you mentioned, is compatible with Java 1.8:
Classfile /Users/mmortari/git/tmp/demo20230218-drools-usageNBjkebQUPTM/KieContainer.class
Last modified Feb 18, 2023; size 2561 bytes
MD5 checksum 30703f76c83e07d5bbdf362cf8496ea7
Compiled from "KieContainer.java"
public interface org.kie.api.runtime.KieContainer
minor version: 0
major version: 52
And that is what counts: Java 1.8 <==> 52
You are likely using a kie-api-7.73.0.Final.jar not from Maven Central, which might have been produced with a different target.
If that has been downloaded from somewhere else which is not Maven Central, we could investigate more; in that case, let us know.
Hope this helps to find confirmation that Drools 7.x works just fine with Java 1.8, q.e.d.
Ciao,
MM