EqualsVerifier: Unsupported class file major version 61

Viewed 55

Java/Maven novice here, I'm trying to integrate EqualsVerifier into my code but am getting the following error

java.lang.AssertionError: EqualsVerifier found a problem in class com.me.MyClass.
-> Unsupported class file major version 61

As I understand it this means that I'm trying to load a JAR built for a different JDK than what I'm building with (17). How can I pull (or build) the JDK17 version of this dependency? My pom contains the following:

            <dependency>
                <groupId>nl.jqno.equalsverifier</groupId>
                <artifactId>equalsverifier</artifactId>
                <version>3.10.1</version>
                <scope>test</scope>
            </dependency>
0 Answers
Related