LaVOZs

The World’s Largest Online Community for Developers

'; Where can I find working example project using PMD in Gradle with Java 11? - LavOzs.Com

Where can I find working example project using PMD in Gradle 6.x with Java 11? Every time I try to get my project working with PMD and Java 11, I always running into errors like this one:

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 55
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:166)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:148)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:136)
        at org.objectweb.asm.ClassReader.<init>(ClassReader.java:237)
        at net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader.getImportedClasses(PMDASMClassLoader.java:107)
        at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.populateClassName(ClassTypeResolver.java:1502)
        at net.sourceforge.pmd.lang.java.typeresolution.ClassTypeResolver.visit(ClassTypeResolver.java:200)
        at net.sourceforge.pmd.lang.java.ast.ASTCompilationUnit.jjtAccept(ASTCompilationUnit.java:41)
        at net.sourceforge.pmd.lang.java.typeresolution.TypeResolutionFacade.initializeWith(TypeResolutionFacade.java:18)
        at net.sourceforge.pmd.lang.java.AbstractJavaHandler$5.start(AbstractJavaHandler.java:104)
        at net.sourceforge.pmd.SourceCodeProcessor.usesTypeResolution(SourceCodeProcessor.java:153)
        at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:180)
        at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:96)

A working sample project would really help me to debug this issue.

Related
How can I force gradle to redownload dependencies?
Is it possible to declare a variable in Gradle usable in Java?
Android Studio fails - unsupport unsupported major minor version 51.0
Using gradle to find dependency tree
Custom PMD rule with Gradle
How do I prevent Gradle from building a non-project directory?
Gradle/Eclipse issue when importing projects
Intellij Idea: Importing Gradle project - getting JAVA_HOME not defined yet
Gradle build failing after update to 3.0
Simple Versioning of a Gradle Project