Java 此版本中使用了不推荐的Gradle功能,使其与我的windows中的Gradle 7.0不兼容。我对Gradle使用6.8.2

Java 此版本中使用了不推荐的Gradle功能,使其与我的windows中的Gradle 7.0不兼容。我对Gradle使用6.8.2,java,gradle,Java,Gradle,我在使用gradle构建时遇到不推荐的错误,在我的Windows中我使用gradle 6.8.2,但当我使用intellij构建gradle时,我遇到如下错误: Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0 3s建设成功 5项可执行任务:3项已执行,2项最新 14:09:15:任务执行已完成“生成” 但是,当建立它时,它就是成功 如何解决我的问题? 这是我用的

我在使用gradle构建时遇到不推荐的错误,在我的Windows中我使用gradle 6.8.2,但当我使用intellij构建gradle时,我遇到如下错误:

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0
3s建设成功 5项可执行任务:3项已执行,2项最新 14:09:15:任务执行已完成“生成”

但是,当建立它时,它就是成功

如何解决我的问题? 这是我用的

dependencies {
    compile('org.springframework.boot:spring-boot-starter-data-rest')
    compile('org.springframework.boot:spring-boot-starter-data-jpa')
    compile('org.springframework.boot:spring-boot-starter-web')

    compile 'io.jsonwebtoken:jjwt:0.9.0'
    compile('org.woodylab.boot:spring-boot-starter-pebble:0.2.3')
    runtime('org.springframework.boot:spring-boot-devtools')
    runtime('mysql:mysql-connector-java')
    compile("org.springframework.boot:spring-boot-starter-tomcat")

    compile 'com.squareup.retrofit2:retrofit:2.4.0'
    compile 'com.squareup.retrofit2:converter-gson:2.4.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
    compile 'org.passay:passay:1.5.0'
}

谢谢大家

这不是错误,而是警告。您的构建正在使用不推荐使用的功能,这些功能可能会在Gradle 7中删除(或更改)。这与你的依赖关系无关。所以我的战争仍然可以使用,对吗?或者我必须改变特性?为什么你不能使用由构建创建的工件,构建成功了,那么它会有什么问题呢。如上所述,这是一个警告,当升级到Gradle 7时,您的构建可能会中断。这对您当前的构建或所创建工件的可用性没有影响。