--
Luke Daley
Principal Engineer, Gradleware
http://gradleware.com
On 27 Dec 2011, at 23:10, Marcin Zajączkowski wrote:
Hi,
I've been playing a little with Gradle recently and as the first try I
wanted to port pom.xml for my small, one module open source project
which is also available in central maven repository [1].
There is still a few things to do, but I would like to consult about a
case of a conditional build. In Maven I have a dedicated profile
"reports" which enables using ReportNG to generate TestNG reports
(additional dependency, additional maven repository - ReportNG is not
available in central, modification in surefire plugin configuration).
In
Gradle I did it using hasProperty("reports") boolean variable and 3 if
statement [2], but maybe it could be done more in "Gradle way"?. What
are the best practices in that case?
[1] -
http://appinfo.git.sourceforge.net/git/gitweb.cgi?p=appinfo/appinfo;a=blob;f=pom.xml;hb=HEAD
[2] - https://gist.github.com/1499336
That's the approach I would recommend right now.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email