当我尝试添加一个Ant项目(名为AntDateUtils)作为Gradle项目的依赖项时,出现了以上失败消息。 这是我的build.gradle
buildscript {
ext {
springBootVersion = '2.1.1.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-
plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'demo'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter')
testImplementation('org.springframework.boot:spring-boot-starter-test')
}
ant.importBuild '../AntDateUtils/build.xml'
这是消息
Deprecated Gradle features were used in this build, making it incompatible
with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.