-
Notifications
You must be signed in to change notification settings - Fork 76
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
Unable to use this plugin with Gradle 8.1 #713
Comments
As a workaround I implemented the same functionality I was using in this plugin by using jgit, which solves the probem. |
Seems like this section of gradle documentation contains details on how to proceed with migration: |
The best workaround for now appears to be to disable the configuration cache, which is not ideal. This has been broken for a relatively long time now. |
@dant3 did you happen to make a plugin to replace this one? |
I have an old plugin that was abandon-ware... it doesn't work right now, but I've decided to resurrect it, since it didn't fork, instead preferrring jgit (which I think won't). Hopeful that I'll get it working by the end of the day. |
I've replaced all usages of this plugin with jgit tasks. Not really a plugin, but it could be extracted to become one I suppose. Howerver it does not resolve the issue because jgit also does Process.exec under the hood in certain situations. I also set those gradle properties
So that it only gives warnings instead of errors. I sometimes see this warning that jgit did called git (to resolve git configuration) but it doesn't happen every time. |
those are caused by eclipse-jgit/jgit#24 people can feel free to weigh in there. Mine is making reasonable progress, would love feedback, I've been messing around with the api quite a bit. I'll probably make some final decisions for 0.9.0 today. |
I think I'm personally generally happy with my API, although at least one person mentioned maybe wanting a provider so if anyone has any opinions on that. Checkout https://github.com/xenoterracide/gradle-semver and give me feedback. I'm not certain 0.9.x will be the final API before 1.0. I'm going to work on a publish to the plugin portal now, and then dogfooding. I'm going to stop commenting on here now, I feel like I'm now spamming someone else's project about my own. |
So, breaking my promise of spamming here... sorry if you tried my thing, and it was a bit unstable. I'm now building in some better dog-fooding so that my plugin can easily consume its own pre-releases before pushing to the plugin portal. Given that, I'm hoping this is the last time I break my API and contract. I'd love feedback before I do, even if you don't plan on using it. Would you want the branch name included? xenoterracide/gradle-semver#173 How do you feel about it moving to just a provider? xenoterracide/gradle-semver#171 Any additional feedback? obviously it's not a drop in for this plugin but I hope it's able to service the primary need or two. |
What happened?
Recently upgraded my project to Gradle 8.1 and now it crashes on configuration stage:
It seems that new gradle does not like then plugins run process at the configuration stage. I'm currently use this plugin to get a version details so that I can then use it in extensions to configure other things and obviously this has to be known at configuration stage.
The text was updated successfully, but these errors were encountered: