首先是下载代码,用idea打开了,自动下载了gradle并构建成功,也将将 Active Profiles 改为 dev,win,./gradlew.bat downloadPluginPresets下载成功。BUILD SUCCESSFUL。
最后启动的时候报错,无论是用idea application run还是命令,gradlew.bat bootRun --args="--spring.profiles.active=dev,win"都报这个错:
Execution failed for task ':application:generateGitProperties'.
Error while evaluating property 'generatedProperties' of task ':application:generateGitProperties'.
No Git repository found.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 569ms
14 actionable tasks: 2 executed, 12 up-to-date
尝试过的办法,去谷歌搜索了一下说是sonar插件的问题,尝试了在build.gradle里设置了property "sonar.gradle.skipCompile","true";仍然报错。不知道要如何解决了,求助下大佬们!