# HG changeset patch # User Oleksandr Gavenko # Date 1490017832 -7200 # Node ID df69c36275d691d638208a3e076cead72b26ce62 # Parent 22f21cc41569f08c31b84ed10275434a29adf25d Build with additional options and checks. diff -r 22f21cc41569 -r df69c36275d6 gradle.rst --- a/gradle.rst Wed Mar 15 01:00:46 2017 +0200 +++ b/gradle.rst Mon Mar 20 15:50:32 2017 +0200 @@ -83,6 +83,16 @@ $ gradle compileJava $ gradle compileTestJava +Build with additional options and checks:: + + compileJava { + options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + } + compileTestJava { + options.encoding = 'UTF-8' + options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + } + Run main class ============== ::