Skip to content
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

Gradle 6.6-rc-1 --configuration-cache > registration of listener on 'Gradle.buildFinished' is unsupported #322

Closed
douph1 opened this issue Jul 15, 2020 · 8 comments · Fixed by #354

Comments

@douph1
Copy link

douph1 commented Jul 15, 2020

Trying the new gradle feature --configuration-cache I have this error

Plugin version : 4.0.2

FAILURE: Build failed with an exception.

* What went wrong:
Configuration cache problems found in this build.
Gradle can be made to ignore these problems, see https://docs.gradle.org/6.6-rc-1/userguide/configuration_cache.html#config_cache:usage:ignore_problems.

1 problem was found storing the configuration cache.
- plugin 'org.ajoberstar.grgit': registration of listener on 'Gradle.buildFinished' is unsupported
  See https://docs.gradle.org/6.6-rc-1/userguide/configuration_cache.html#config_cache:requirements:build_listeners

See the complete report at file:///.../build/reports/configuration-cache/dg0qms2iixa405dr5cw20kfzz-2/configuration-cache-report.html
> Listener registration 'Gradle.buildFinished' by build 'xxx' is unsupported.
@rusefillc
Copy link

+1 :)

@kibotu
Copy link

kibotu commented Aug 22, 2021

+1

1 similar comment
@Petrakeas
Copy link

+1

@yongfa365
Copy link

yongfa365 commented Jan 14, 2022

.gradle\gradle.properties need disable cache :

org.gradle.caching=false
org.gradle.unsafe.configuration-cache=false

@kibotu
Copy link

kibotu commented Jan 14, 2022

the issue is about supporting gradle configuration cache not how to disabled it @yongfa365

@abelom
Copy link

abelom commented Jan 26, 2022

by the way #346 mentions configuration change in connection with next major version

@ajoberstar
Copy link
Owner

Support will be available as of 5.0.0-rc.1 (working on releasing right now). I'm going to try adopting this new approach in gradle-git-publish and reckon before calling 5.0.0 final. Please provide feedback on the behavior in new issues if you're looking for further changes.

@abelom
Copy link

abelom commented Feb 8, 2022

it's great news that this was fixed! but the fix is currently coupled to JGit midration meaning drop of java 8 support.

Any chance for #355 i.e. not tying configuration-cache to java 11 requirment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants