-
Notifications
You must be signed in to change notification settings - Fork 171
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
Groovy version conflicts when running farmStart with a war file. #93
Comments
It's difficult to remove groovy from webapps classpath, because webapp must get parent classloader from server, otherwise Servlet API would not work. buildscript {
repositories {
// ...
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
dependencies {
classpath 'org.akhikhl.gretty:gretty:1.1.4-SNAPSHOT'
}
}
apply plugin: 'org.akhikhl.gretty'
repositories {
// ...
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
} |
Yes - it works. It seems a little bit backwards to force the webapp to use a different version of groovy - however for my current use case (a convenient way to run functional tests) it should be fine. Thank you for the quick reply. This is a really great plugin. |
I'll meditate on classpath riddle and maybe I'll find a solution with better isolation between server and webapp. |
Gretty release 1.1.4 is out, with abovementioned groovy version fix. Please use it instead of snapshot. |
…rt with a war file.". Now fixed groovy version conflicts when running spring-boot products.
I just fixed related bug on Gretty 1.1.5-SNAPSHOT: |
@rszewczyk , can you confirm that the problem is solved in 1.1.4? |
Sorry for the delayed response. Yes - it works in the 1.1.4 release. Thanks! |
I'm using gretty (v1.1.3) with a war file from a Grails application that uses groovy 2.1.9. The application fails to start when running farmStart with the error:
groovy-all is loaded in version 2.1.9 and you are trying to load version 2.3.6
. My current workaround is to delete the groovy-all jar from the exploded war file. Is there a way to have Gretty not put its version of groovy on the classpath when using a war file?The text was updated successfully, but these errors were encountered: