Is the idea with conditional build (profiles) so unusual that nobody wants to share with it's experiences? Maybe you have some better idea how to do something I described "in Gradle way"?
Marcin On 2011-12-28 00: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 > > Regards > Marcin -- http://blog.solidsoft.info/ - Working code is not enough --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email