Rob Kirkbride wrote:
>
> Is it possible to do something like if gradle version is milestone 3 then
> config looks like X
> otherwise config looks like Y?
>
Try:
if (GradleVersion.current() <= GradleVersion.version("1.0-milestone-3")) {
... } else { ... }
This will work as long as you don't use any m5-only (or m3-only) class names
in your build script. If you need that (unlikely in the case of the Sonar
plugin), you should be able to factor out any version-specific configuration
into its own build script and apply it with 'apply from:'.
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Sonar-plugin-broken-in-1-0-milestone-5-tp4885293p4887849.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email