On Tue, Mar 1, 2011 at 11:27, Neil Chaudhuri
<[email protected]> wrote:
> I have a multi-module project (WAR with a bunch of component JARs) where
> each module needs to be compiled with JDK 1.6x. I added
> sourceCompatibility="1.6" to the gradle.properties file alongside my
> top-level build script, but my code was still compiled with 1.5. Then I
> added it to the script itself. No luck.
>
>
>
> It wasn’t until I added sourceCompatibility to the individual scripts
> themselves that the project is compiled with 1.6. It isn’t the worst thing
> in the world, but is there a way for the setting to be applied to all
> modules but from a single location.
>
>
>
> Thanks.
You could do it in a parent script that does
subprojects {
sourceCompatibility = '1.6'
}
or
allprojects {
sourceCompatibility = '1.6'
}
--
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp
Software Engineer
Open Source Advocate
PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email