I’ve encountered the following warning when running on a single project build and Gradle 6.3
The configuration :runtimeClasspath was resolved without accessing the project in a safe manner. This may happen when a configuration is resolved from a different project. See https://docs.gradle.org/6.1.1/userguide/viewing_debugging_dependencies.html#sub:resolving-unsafe-configuration-resolution-errors for more details. This behaviour has been deprecated and is scheduled to be removed in Gradle 7.0.
The warning and the linked docs point to possible problems when resolving configurations that cross project boundaries. However in this case there are no additional projects, just the one. I wonder then what could be the cause of this problem. The project applies a plugin that calculates a “Class-Path” manifest entry with the following code
If this piece of code is omitted then no warning occurs. Configurations are not eagerly resolved anywhere else by the plugin nor the project itself. Any clues on how to solve this issue?