Remove deprecated use of Compile to work with Gradle 2.0+

The class Compile was deprecated and will be removed in Gradle 2.0 (it is
already removed in the release canidate).

Instead we should use JavaCompile. Fixes gh-1066.
This commit is contained in:
Dave Syer 2014-06-10 09:13:19 +01:00
parent e39fafcc33
commit f0393f9ca6

View File

@ -56,7 +56,7 @@ class SpringBootPlugin implements Plugin<Project> {
}
private useUtf8Encoding(Project project) {
project.tasks.withType(org.gradle.api.tasks.compile.Compile).all {
project.tasks.withType(org.gradle.api.tasks.compile.JavaCompile).all {
it.doFirst {
if(!it.options.encoding) {
it.options.encoding = 'UTF-8'