-
Notifications
You must be signed in to change notification settings - Fork 221
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 configuration cache compatibility #346
Comments
Any plans to update this? |
Do I see it right that the alternative would be to use https://docs.gradle.org/6.9.2/javadoc/org/gradle/build/event/BuildEventsListenerRegistry.html which enforces the minimum required version to be 6.1 . |
For the |
Any news? |
I tried messing around with this in my fork. See main...jonnybot0:gradle-release:main. Main problem I'm running up against now is that I'm getting this error when running the tests:
On researching that, it looks like this problem was fixed in Gradle 7.6 (I think). See As such, fixing this would likely entail upgrading Gradle in the plugin. There may be other workarounds, but a Gradle update seems the most straightforward. If the maintainers are open to that, I might be able to scare up a PR in that direction. I'd like some pointers on whether it should go all the way to, say, Gradle 8.0 or what, since I imagine breaking backwards compatibility would be a major release. |
@Hillkorn any interest in fixing this issue? @jonnybot0 seems on the right track with his // The gradle-release plugin runs gradle subprocesses. Checking only "release" isn't sufficient.
// https://github.com/researchgate/gradle-release/blob/main/src/main/groovy/net/researchgate/release/ReleasePlugin.groovy#L57
if (!gradle.startParameter.taskNames.toSet().intersect(["release", "runBuildTasks", "afterReleaseBuild"]).empty) {
apply plugin: "net.researchgate.release"
...
} |
The current version is not compatible with the new Gradle configuration cache as it for example modifies the version property at task execution time.
The text was updated successfully, but these errors were encountered: