George Young
05/15/2024, 9:37 AMjava -cp merlin-wiremock-1.0-SNAPSHOT.jar:wiremock-standalone-3.5.4.jar wiremock.Run --port 9999 --no-request-journal --global-response-templating --verbose > "stdout.log" --extensions MySpecialTransformer
I get this error
UnsupportedClassVersionError: TitanDecryptTransformer has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
The jar for MySpecialTransformer was compiled using Java 17. I try to repackage using Java 11 (version 55) (clean package -DskipTests) but this fails in IntellliJ saying:
Module my-wiremock SDK 11 is not compatible with the source version 17.
Upgrade Module SDK in project settings to 17 or higher. Open project settings.
I have changed all the InteliJ settings for the project described here. https://stackoverflow.com/questions/25878045/errorjava-invalid-source-release-8-in-intellij-what-does-it-mean/26009627#26009627
I still get the same error. Can anyone advise me how to build, package and run wiremock standalone with my custom java classes?Lee Turner
05/15/2024, 9:59 AMjava --version
to see what version you are running or maybe try and remove intellij from the equation and running gradle from the command line ?George Young
05/15/2024, 10:05 AMLee Turner
05/15/2024, 10:12 AMmaven.compiler.source
or maven.compiler.target
properties in your pom.xml
?George Young
05/15/2024, 10:23 AMLee Turner
05/15/2024, 10:30 AM