Last active
February 25, 2016 13:46
-
-
Save childnode/ecda86a3f359f66716ab to your computer and use it in GitHub Desktop.
gradle_java_check_compiler.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks.withType(JavaCompile) { | |
doFirst { | |
if (!JavaVersion.current().java8Compatible) { | |
throw new IllegalStateException("Must be built with Java 8 or higher") | |
} | |
} | |
// typical compileJava options | |
options.encoding = 'UTF-8' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment