# HG changeset patch # User Oleksandr Gavenko # Date 1490018941 -7200 # Node ID 3fd683bb6af2fe36f4bf4ced81264066c462be5c # Parent df69c36275d691d638208a3e076cead72b26ce62 Apply change recursively to subprojects. diff -r df69c36275d6 -r 3fd683bb6af2 gradle.rst --- a/gradle.rst Mon Mar 20 15:50:32 2017 +0200 +++ b/gradle.rst Mon Mar 20 16:09:01 2017 +0200 @@ -93,6 +93,14 @@ options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" } +To apply change recursively to subprojects:: + + subprojects { + tasks.withType(JavaCompile) { + options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + } + } + Run main class ============== ::