ant.importBuild'build.xml'失败:此构建中使用了不推荐使用的Gradle功能

时间:2018-12-11 09:08:52

标签: gradle ant

当我尝试添加一个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.

0 个答案:

没有答案