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 8.7 works with configuration cache #232

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fkretzer
Copy link

First try to make in compatible with configuration cache in gradle 8.7. Further refactoring needed.
Changes: Detection of .git-dir not possible during configration phase -> Logic of GitDirLocator without usage of jgit?

@fkretzer
Copy link
Author

Sorry for just dropping this without explanation. Had some spare time and played around with it. Just wanted to not loose my thoughts. I wasn't confident if i'm understanding the gradle lifecylcle enough to be able to change it without breaking current behaviour. A major blocker was that gradle doesn't allow the side effects of using jgit in the configuration phase to detect the .git-folder. Maybe it would be ok to use a simpler algorithm to detect the presence of a repo without instanciating via jgit? Maybe just checking the presence of a not empty .git-folder is enough?

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

Successfully merging this pull request may close these issues.

1 participant