异常:
> Task :processResources FAILED
Execution failed for task ':processResources'.
> Entry application.properties is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.6/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.
* Try:
> 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.
方案:build.gradle文件中新增以下配置即可
tasks.withType(Copy).all {
duplicatesStrategy 'exclude'
}