xvik / gradle-use-python-plugin

Use python modules in gradle build
https://xvik.github.io/gradle-use-python-plugin/
MIT License
68 stars 18 forks source link

Missing configuration cache support #89

Closed davireis closed 6 months ago

davireis commented 1 year ago

See error below:

 Plugin 'ru.vyarus.use-python': registration of listener on 'Gradle.buildFinished' is unsupported
 See https://docs.gradle.org/8.0.2/userguide/configuration_cache.html#config_cache:requirements:build_listeners

For more information on configuration cache: https://blog.gradle.org/introducing-configuration-caching

xvik commented 1 year ago

Yes, configuration cache is not supported yet because there was no alternative to buildFinished listener. But since 8.1 there is a flowscope api which could be used instead.

I will try to use it and, in case of success, plugin would support build cache for gradle 8.1 and above and will fallback to old listener for older gradle versions. Can't promise it very soon, but not too long.

And, just for reference (to keep track), configuration cache issue in mkdocs plugin (relative of this plugin).

xvik commented 6 months ago

4.0.0 released with configuration cache support