-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.6.1 eagerly resolves configurations #1213
Comments
There is in fact a change in spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessExtensionImpl.java Lines 63 to 72 in 63b9762
spotless/plugin-gradle/src/main/java/com/diffplug/gradle/spotless/FormatExtension.java Line 762 in 63b9762
Previously, these were only resolved when Gradle did the up-to-date checking. The reason they were moved up is that for a failed build, some tasks might never get resolved, which led to a memory leak because the unresolved steps in the daemon cache were holding onto a reference to the Gradle project which was needed to lazily resolve dependencies. I don't understand why this would have any effect on the |
Looks like that works for us, thanks! |
See diffplug/spotless#1213. Better performance too since we use the same config for every project
This may not actually be resolved yet, realized we weren't applying it at all in our root project. Won't be able to test it properly until #1226 is resolved |
Ok looks resolved for us with that after some updates |
Move spotless configuration to top-level diffplug/spotless#1213 Change-Id: I689a76f7e297709132841574249dd0b8243f30f9
Move spotless configuration to top-level diffplug/spotless#1213 Change-Id: I689a76f7e297709132841574249dd0b8243f30f9
When trying to upgrade from
6.6.0
to6.6.1
in Gradle 7.4.2 on macOS Monterey, we see a strange exception start coming from AGP when it tries to modify a kapt configuration that has already been resolved. The only change here is the spotless upgrade however, so I'm not sure what else it could be than spotless resolving it early.Our spotless config is here: https://github.com/slackhq/slack-gradle-plugin/blob/1cf68e8504c562c9b67d4e53821dd0b81b4031d2/slack-plugin/src/main/kotlin/slack/gradle/StandardProjectConfigurations.kt#L232
The text was updated successfully, but these errors were encountered: