Re:What's in a Build Tool?
by pkd on Saturday March 05, 2016 @01:10AM
(#11228621)
Definitely not Maven. Maven is ubiquitous in Java projects. Gradle has been pushed hard by Android, but I know that a lot of developers aren't convinced that putting code into configuration is a good idea.
Maven even after all the XML crud remains insanely flexible and powerful.
[ Parent
| on HN ]
I have no opinion on Gradle at this point, though the developers you mention probably need a casual reminder that code == data, and complex enough XML spec is indistinguishable from a poorly formatted Abstract Syntax Tree (or Lisp code).
Maven is really not insanely flexible. I have a build in which i wanted three distinct test phases (unit, functional, and API contract). A simple requirement. But i couldn't have that without writing a plugin, or breaking out a dummy module for one of them. We ended up making the contract tests a special case of the unit tests, selected by passing in some flags; a consequence of that is that it's impossible to run both sets of tests in a single build.
tl;dr: Maven is the exact opposite of flexible.
creating profiles specific to each might help
I think i still couldn't run all three sets of tests in one build though, right?
You can activate multiple profiles per build if needed.
But i can't run a goal twice under different profiles, can i?