grasshopper7 / extentreports-cucumber6-adapter

Cucumber-JVM 6 Adapter for Extent Framework
https://ghchirp.online/2098/
MIT License
16 stars 15 forks source link

Unable to compile with JDK 16 #39

Open simsekMcem opened 3 years ago

simsekMcem commented 3 years ago

Hello,

There is an issue with JDK 16 because of a dependency called lombok. This dependency is coming from extentreports library and throws such an error:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project PROJECT: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x6a2badb1) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x6a2badb1 -> [Help 1]

Same issue is discussed here: https://github.com/projectlombok/lombok/issues/2681 Lombok needs to be updated to make compatible with JDK 16. If im not mistaken, this issue is handled in the lombok project.

Do you have any idea about this problem?

grasshopper7 commented 3 years ago

I have not tried compiling the adapter with JDK 16. I think the latest JDK version I have tried is 11.

I am really not sure if extentreports currently support JDK 16. U could open an issue https://github.com/extent-framework/extentreports-java/issues in extentreports for further details.

U could also try compiling the extentreports source with the latest lombok version.