Skip to content

Instantly share code, notes, and snippets.

@breskeby
Created April 25, 2014 08:33
Show Gist options
  • Save breskeby/11282169 to your computer and use it in GitHub Desktop.
Save breskeby/11282169 to your computer and use it in GitHub Desktop.
log java compiler warnings with gradle
tasks.withType(JavaCompile){
def warnLogFile = file("$buildDir/${name}Warnings.log")
logging.addStandardErrorListener(new StandardOutputListener(){
void onOutput(CharSequence output){
warnLogFile << output
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment