Zeebe-client-java 8.7.6 JDK8 Incompatibility Due to camunda-xml-model 7.22.0 Dependency

According to the official documentation, zeebe-client-java supports JDK8+. Currently, I am using version 8.7.6 of the zeebe-client-java package. I noticed that this package depends on the zeebe-bpmn-model package, which in turn depends on camunda-xml-model 7.22.0. However, camunda-xml-model 7.22.0 requires a minimum of JDK11+. As a result, when I compile my program, I encounter the following error:

Wrong class file: D:.m2\org\camunda\bpm\model\camunda-xml-model\7.22.0\camunda-xml-model-7.22.0.jar(org/camunda/bpm/model/xml/ModelInstance.class)
[ERROR] Class file has wrong version 55.0, expected 52.0
[ERROR] Please remove or ensure the file is in the correct classpath subdirectory.

If zeebe-client-java is intended to support JDK8+, then the minimum JDK version requirement for camunda-xml-model needs to be adjusted.

Hey @jamesxql !

thanks for reaching out on this! That’s indeed a bug in our dependency setup with regards to JDK8 compatibility, we’ll downgrade the model lib to 7.19 which is jdk8 compatible with this issue Enforce max JDK version for certain modules via bytecode version · Issue #28277 · camunda/camunda · GitHub .

As a workaround you can manually downgrade the model lib as shown in this example workaround: downgrade camunda-xml-model for java 8 compatibility by megglos · Pull Request #368 · camunda/camunda-platform-get-started · GitHub .

Apologies for this inconvenience!

Best
Meggle