From f0393f9ca6d905a9592f56c7c2c32e27dc66b454 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 10 Jun 2014 09:13:19 +0100 Subject: [PATCH] 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. --- .../org/springframework/boot/gradle/SpringBootPlugin.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.groovy b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.groovy index 7d37095c893..056c30bc82f 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.groovy +++ b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.groovy @@ -56,7 +56,7 @@ class SpringBootPlugin implements Plugin { } 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'