I have Gradle Java projects that I'd love to use CodeQL to analyse. However, if I enable CodeQL either in its own workflow or integrated into the main build workflow, then the build fails with error:
Error: Exception in thread "main" Unknown javac parameter: --add-opens
at com.semmle.extractor.java.args.JavaExtractorArgs.parse(JavaExtractorArgs.java:331)
at com.semmle.extractor.java.JavaExtractor.<init>(JavaExtractor.java:187)
at com.semmle.extractor.java.JavaExtractor.main(JavaExtractor.java:482)
The --add-opens command line option is being introduced by the org.javamodularity.moduleplugin Gradle plugin, which the project is using as its using Java's module system (a.k.a. Jigsaw).
However, its not javac that's complaining about the option, but com.semmle.extractor.java.args.JavaExtractorArgs.parse. The version of java the project is using supports the option. Looks like this could be an issue with the LGTM code...?