Russel Winder wrote:
I am hoping I have missed something simple, or an email...
The Gant build needs to build with many different variants of Groovy --
the wonders of WORA, we have to compile against exactly the right
versions of Groovy which means for distributions, currently there are 3
version of Groovy to compile against.
Is there an easy way of doing this in Gradle, or is it a question of
transferring the horrible code from the Gant build?
A potential solution is to use a multi-project build with 1 project per
version of groovy you want to build for, and with tasks injected into
them from the root project. An example:
in settings.gradle:
include 'groovy1.5.6', 'groovy1.5.7', 'groovy1.6'
in build.gradle:
subprojects {
usePlugin('groovy')
groovyVersion = project.name.substring('groovy'.length())
dependencies {
groovy "org.codehaus.groovy:groovy-all:$groovyVersion"
}
// some other per-version tasks go here
}
You could also add tasks to the root project to do stuff common to all
versions, such as, gathering up the artifacts for all versions and
publishing them somewhere.
Adam
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email