【发布时间】:2018-03-23 00:38:57
【问题描述】:
当我执行gradle clean build --warning-mode=all 时,我收到以下警告:
Putting annotation processors on the compile classpath has been deprecated and is scheduled to be removed in Gradle 5.0. Please add them to the processor path instead. If these processors were unintentionally leaked on the compile classpath, use the -proc:none compiler option to ignore them..
build.gradle
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
repositories {
mavenCentral()
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1"
compile files("libs/ojdbc7.jar")
compile "org.springframework.boot:spring-boot-configuration-processor"
compile group: "javax.inject", name: "javax.inject", version: "1"
runtime "org.springframework.boot:spring-boot-devtools"
providedRuntime "org.springframework.boot:spring-boot-starter-tomcat"
testCompile "org.springframework.boot:spring-boot-starter-test"
}
bootRepackage {
enabled = false
}
我不明白警告是什么。我对 Gradle 还很陌生。我需要帮助来了解我应该使用的annotation processors 是什么以及如何使用processor path。
【问题讨论】:
标签: spring-boot gradle build.gradle