You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade org.codehaus.groovy:groovy version to work with io.rest-assured:rest-assured which is a test library. org.codehaus.groovy:groovy version should be at least 2.5.8
Issue
java.lang.NoClassDefFoundError:org.apache.groovy.io.StringBuilderWriter in my tests.
Context
For now, io.rest-assured:rest-assured uses org.codehaus.groovy:groovy version 2.5.8 , where org.apache.groovy.io.StringBuilderWriter is present.
Due to version clash with org.codehaus.groovy:groovy library, maven loads the non-test library(thymeleaf-layout-dialect) version which is 2.4.13, where org.apache.groovy.io.StringBuilderWriter does not exists.
I've upgraded Groovy in an in-development branch that I think will become the 2.5.0 release of the layout dialect at some time. It's available as a 2.5.0-SNAPSHOT version if you wish to try that.
And yes, as mentioned in your edit, you can drop in Groovy 2.5.x as a (test) dependency of your project and the conflict resolution algorithm will pick that over Groovy 2.4 defined in the layout dialect and it should work just fine 👍 I remember not having to make any code changes in my development branch when making that upgrade.
Action
Upgrade
org.codehaus.groovy:groovy
version to work withio.rest-assured:rest-assured
which is a test library.org.codehaus.groovy:groovy
version should be at least2.5.8
Issue
java.lang.NoClassDefFoundError:org.apache.groovy.io.StringBuilderWriter
in my tests.Context
For now,
io.rest-assured:rest-assured
usesorg.codehaus.groovy:groovy
version2.5.8
, whereorg.apache.groovy.io.StringBuilderWriter
is present.Due to version clash with
org.codehaus.groovy:groovy
library, maven loads thenon-test
library(thymeleaf-layout-dialect
) version which is2.4.13
, whereorg.apache.groovy.io.StringBuilderWriter
does not exists.P.S. My current versions:
Later Edit
I tested with
org.codehaus.groovy:groovy:2.5.11
and library still works, at least from what I need it to doThe text was updated successfully, but these errors were encountered: