Re: [gradle-user] break build on compile warning?

2011-10-04 Thread Luke Daley
On 02/10/2011, at 1:21 PM, Hans Dockter wrote: On Thu, Sep 29, 2011 at 5:29 PM, Luke Daley luke.da...@gradleware.com wrote: On 28/09/2011, at 9:15 PM, phil swenson wrote: I'm sure you meant -Werror instead of -Xlint:unchecked In any case it doesn't seem to do anything on the java

Re: [gradle-user] break build on compile warning?

2011-10-02 Thread Hans Dockter
On Thu, Sep 29, 2011 at 5:29 PM, Luke Daley luke.da...@gradleware.comwrote: On 28/09/2011, at 9:15 PM, phil swenson wrote: I'm sure you meant -Werror instead of -Xlint:unchecked In any case it doesn't seem to do anything on the java tasks (I put in some deprecated uses an get the

Re: [gradle-user] break build on compile warning?

2011-09-29 Thread Luke Daley
On 28/09/2011, at 9:15 PM, phil swenson wrote: I'm sure you meant -Werror instead of -Xlint:unchecked In any case it doesn't seem to do anything on the java tasks (I put in some deprecated uses an get the compiler warning I tried both (in my build.gradle) compileJava {

Re: [gradle-user] break build on compile warning?

2011-09-28 Thread phil swenson
anyway to do this for groovy? thanks phil On Fri, Sep 2, 2011 at 11:51 AM, Luke Daley luke.da...@gradleware.com wrote: On 30/08/2011, at 5:47 PM, phil swenson wrote: Is there a way to break a gradle build if there is a compile warning? People are ignoring the compiler warnings, and this

Re: [gradle-user] break build on compile warning?

2011-09-28 Thread Luke Daley
It's the same syntax. To set it for all Java and Groovy compile tasks: tasks.matching { it instanceof Compile || it instanceof GroovyCompile }.all { options.compilerArgs -Xlint:unchecked } On 28/09/2011, at 5:20 PM, phil swenson wrote: anyway to do this for groovy? thanks phil On

Re: [gradle-user] break build on compile warning?

2011-09-28 Thread phil swenson
I'm sure you meant -Werror instead of -Xlint:unchecked In any case it doesn't seem to do anything on the java tasks (I put in some deprecated uses an get the compiler warning I tried both (in my build.gradle) compileJava { options.compilerArgs -Werror } and your tasks.matching

Re: [gradle-user] break build on compile warning?

2011-09-02 Thread Luke Daley
On 30/08/2011, at 5:47 PM, phil swenson wrote: Is there a way to break a gradle build if there is a compile warning? People are ignoring the compiler warnings, and this would be a stop to it :) This should work: compileJava { options.compilerArgs -Werror } Inspiration taken from

[gradle-user] break build on compile warning?

2011-08-30 Thread phil swenson
Is there a way to break a gradle build if there is a compile warning? People are ignoring the compiler warnings, and this would be a stop to it :) - To unsubscribe from this list, please visit: