ben-manes / gradle-versions-plugin

Gradle plugin to discover dependency updates
Apache License 2.0
3.86k stars 199 forks source link

Gradle 8 errors #800

Closed jimshowalter closed 1 year ago

jimshowalter commented 1 year ago

Upgrading to Gradle 8 and running dependencyUpdates generates this output:

- Task:dependencyUpdatesof typecom.github.benmanes.gradle.versions.updates.DependencyUpdatesTask`: cannot serialize a lambda that captures or accepts a parameter of type 'org.gradle.api.artifacts.Configuration' as these are not supported with the configuration cache. See https://docs.gradle.org/8.2.1/userguide/configuration_cache.html#config_cache:requirements:disallowed_types

Note: To see this, you may need to add this to gradle.properties:

org.gradle.configuration-cache=true

ben-manes commented 1 year ago

The plugin informs Gradle that its task cannot be used as part of the configuration cache. In 8.0-8.2, Gradle changed to spam the console which was fixed in 8.3. The configuration cache is not widely supported (even by Gradle plugins) and not a necessary optimization for this task as not run continuously like a compile/test cycle. You can use -q to silence this or upgrade to 8.3.

jimshowalter commented 1 year ago

Oh, thank you!

ben-manes commented 1 year ago

oh I'm wrong on 8.3. I thought they fixed https://github.com/gradle/gradle/issues/24435, but -q works like a charm so I just use that.