gpt4 book ai didi

spring-boot - 此构建中使用了 Gradle 功能,使其与 Gradle 7.0 不兼容

转载 作者:行者123 更新时间:2023-12-05 01:55:42 28 4
gpt4 key购买 nike

这是我的 Spring 启动项目。当我要在 spring 工具套装中运行 gradle 任务时,我会得到如下错误。我是 sprint boot 的新手,任何人都可以帮助我。我用的是 java 11 和 gradle 版本 6.8.3

Gradle Distribution: Specific Gradle version 6.8.3
Gradle Version: 6.8.3
Java Home: /usr/lib/jvm/java-11-openjdk-amd64
JVM Arguments: None
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: clean build

> Task :clean

> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :processResources
> Task :classes
> Task :bootJarMainClassName
> Task :bootJar
> Task :jar SKIPPED
> Task :assemble
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :check UP-TO-DATE
> Task :build

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8.3/userguide/command_line_interface.html#sec:command_line_warnings

最佳答案

您可以使用 ./gradlew build --warning-mode all 找出已弃用的功能。

例如 enter image description here

enter image description here

关于spring-boot - 此构建中使用了 Gradle 功能,使其与 Gradle 7.0 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70120287/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com