jwagenleitner / groovy-wslite

Lightweight SOAP and REST webservice clients for Groovy
Apache License 2.0
400 stars 115 forks source link

Please could someone re-compile for Groovy V4+ / JDK 17+ #159

Open merlinbeedell opened 5 months ago

merlinbeedell commented 5 months ago

If Groovy v4 is used it shows class-not-found for XMLSlurper - the groovy.util.XMLSlurper is now located under groovy.xml.

If JDK 17+ is used then it responds with Caught: java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for java.lang.Enum do not match. Expected 1 but got 0 at wslite.soap.SOAPVersion.(SOAPVersion.groovy)

I tried to get the gradle/maven etc to work, but I just do not have the knowledge to reconfigure these correctly.

So I am reaching out to the much more knowledgeable team to see if anyone could resurrect and update this very useful utility (I use it for SOAP calling groovy scripts - all basic stuff).

joanapmarq commented 3 months ago

Does anyone know how to resolve this issue? I also updated my java to 17 and now I get this error java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for java.lang.Enum do not match. Expected 1 but got 0 at wslite.soap.SOAPVersion.(SOAPVersion.groovy)

ks1313 commented 2 months ago

I have run into the same problem. Has anyone found a solution or workaround? I am using Java 17 and Groovy 3.