> However, your post brought me the idea of a fourth alternative:
> d) Use a standard build.gradle file for one release and an
> build73.gradle file for the other.

Wouldn't these build script names be better? Including the version number of 
the dependencies in the build script name is not handy:
- build.gradle: root project with common configuration.
- build-portal.gradle: project for the portal.
- build-ear.gradle: project for the EAR.

You have to add a "settings.gradle" [1] to add "build-portal.gradle" and 
"build-ear.gradle" as subprojects "portal" and "ear" respectively. It would 
look something like this (it is likely that this can be specified in a better 
way):
    include 'portal', 'ear'

    portalProject = project(':portal')
    portalProject.projectDir = rootDir
    portalProject.buildFileName = 'build-portal.gradle'

    earProject = project(':ear')
    earProject.projectDir = rootDir
    earProject.buildFileName = 'build-ear.gradle'

You might have to change the output directory of the subprojects to ensure 
build results don't get messed up: set property "buildDir" [2] in the 
subproject build scripts.

[1] 
http://www.gradle.org/current/docs/dsl/org.gradle.api.initialization.Settings.html
[2] 
http://www.gradle.org/current/docs/dsl/org.gradle.api.Project.html#org.gradle.api.Project:buildDir

--
Regards, Johan



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to