4 ms·
I'm curious what you mean here with the implication that you couldn't simply add Groovy code to your existing apps built with Maven. Have you tried it? It has
by h_r 9y ago
I'm curious what you mean here with the implication that you couldn't simply add Groovy code to your existing apps built with Maven. Have you tried it?
It has been probably over 5 years but when I was writing a lot of Java and Groovy, we were standardized on using Maven at that company. The Groovy Maven plugins worked and I had several projects with various mixtures of Groovy, all built with Maven: from Java with Groovy tests, to Groovy and Java throughout, to pure Groovy web services. It was a bit of a pain getting the configuration set up initially but it worked well.
- manyxcxi 9y agoWhat I didn't say was that my only experience so far is with Groovy by itself, and using Gradle to build. It's not an implication of Groovy or Maven for not supporting it, it's that I don't know the right way to do it yet.
- h_r 9y agoYou can mix Java and Groovy with Gradle as well. This might help: https://stackoverflow.com/questions/22369033/how-to-use-gradle-java-and-groovy-together https://stackoverflow.com/questions/22369033/how-to-use-grad... I haven't used Maven in a long time and I'm not sure what is the state of the Groovy Maven plugin. Writing unit tests in Groovy for your Java projects is a great, low risk way to get things working.
- justadeveloper2 9y agoIt still works if you use the groovy-eclipse plugin in Maven, otherwise no. A lot of the Groovy interop tooling has fallen behind in 2017. For example, the developers I work with who use Eclipse could not run Spock tests because the plugins for 2.5 are busted. If you use IDEA you are still gtg.