ant.importBuild 'build.xml' не удалось: в этой сборке использовались устаревшие функции Gradle - PullRequest
0 голосов
/ 11 декабря 2018

При попытке добавить проект 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.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...