Skip to content

Commit f0393f9

Browse files
author
Dave Syer
committed
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.
1 parent e39fafc commit f0393f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/SpringBootPlugin.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class SpringBootPlugin implements Plugin<Project> {
5656
}
5757

5858
private useUtf8Encoding(Project project) {
59-
project.tasks.withType(org.gradle.api.tasks.compile.Compile).all {
59+
project.tasks.withType(org.gradle.api.tasks.compile.JavaCompile).all {
6060
it.doFirst {
6161
if(!it.options.encoding) {
6262
it.options.encoding = 'UTF-8'

0 commit comments

Comments
 (0)