Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade groovy version #205

Closed
silviu-negoita opened this issue May 4, 2020 · 1 comment
Closed

Upgrade groovy version #205

silviu-negoita opened this issue May 4, 2020 · 1 comment
Assignees

Comments

@silviu-negoita
Copy link

silviu-negoita commented May 4, 2020

Action

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.

P.S. My current versions:

 +- nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:jar:2.4.1:compile
 +- nz.net.ultraq.thymeleaf:thymeleaf-expression-processor:jar:1.1.3:compile
 |  \- org.codehaus.groovy:groovy:jar:2.4.13:compile

Later Edit

I tested with org.codehaus.groovy:groovy:2.5.11 and library still works, at least from what I need it to do

@ultraq ultraq self-assigned this May 5, 2020
@ultraq ultraq added this to the Thymeleaf Layout Dialect 2.5.0 milestone May 5, 2020
@ultraq
Copy link
Owner

ultraq commented May 5, 2020

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.

@ultraq ultraq closed this as completed Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants