allegro / axion-release-plugin

Gradle release & version management plugin.
https://axion-release-plugin.readthedocs.io/
Apache License 2.0
545 stars 148 forks source link

Gradle 8.6 configuration cache compatibility? #727

Open jimirocks opened 1 month ago

jimirocks commented 1 month ago

Hello,

having enabled configuration cache with gradle 8.6 in gradle.properties using org.gradle.configuration-cache=true

The release task fails on following:

2 problems were found storing the configuration cache.
- Task `:release` of type `pl.allegro.tech.build.axion.release.ReleaseTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.6/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
- Task `:verifyRelease` of type `pl.allegro.tech.build.axion.release.VerifyReleaseTask`: cannot serialize Gradle script object references as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.6/userguide/configuration_cache.html#config_cache:requirements:disallowed_types;

Is there any chance to somehow mitigate that? If you provide some guidance I can try to contribute...