Fix build scan warning about build cache configuration #5690
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Message: "The build cache configuration of the root build differs from the build cache configuration of the early evaluated ':build-logic', ':detekt-gradle-plugin' included builds. It is recommended to keep them consistent."
See example here: https://ge.detekt.dev/s/pvz4ogayjxfzc/performance/build-cache
In theory this can be fixed by copying the
buildCache {}
config from the root settings file to the build-logic and detekt-gradle-plugin settings files, but this doesn't seem to be working (see gradle/gradle#21630).In the meantime, have used this reference as a way to correct it:
Using
pluginManagement
reverses the order of evaluation which leads to the warning due to the bug mentioned above, so switching to the other, stable way to addincludeBuild
until the Gradle bug is fixed.