mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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:
parent
e39fafcc33
commit
f0393f9ca6
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user