-
Notifications
You must be signed in to change notification settings - Fork 55
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
Configuration cache problems in Gradle 8.1 #225
Comments
References for issues related to JGit:
Seems to be able to detour using environment variable |
The root cause is here: gradle-git-properties/src/main/groovy/com/gorylenko/GenerateGitPropertiesTask.groovy Lines 96 to 98 in 80fd874
|
+1 |
one of my colleagues dug up a jgit feature that makes this plugin config-cache compatible with no code changes another option is to change the way jgit is initialized in the plugin ( maybe with an associated config property ) like it has been done in this PR for the axion release plugin https://github.com/allegro/axion-release-plugin/pull/683/files |
+1 |
For Information this plugin is working for me : "io.hndrs.gradle:gradle-git-properties-plugin:1.0.0" |
Another workaround to consider until this plugin supports configuration cache: Setting |
I think it's important to mention another plugin https://github.com/hndrs/gradle-git-properties-plugin (it was mentioned above indeed) This one was updated 2 years ago, it has MRs open for N years and it has a low response in issues, tbh I have serious doubts about why Spring refers to it even in latest versions
|
Is there any plan to support configuration cache soon? Currently using version 2.4.2 of this plugin and Gradle 8.10, I'm experiencing the following issues:
|
@randyhbh I don't this plugin will ever support anything, it was updated last time 2 years ago. It should be reported to Spring Boot so they stop refer it, people use the plugin but it's outdated - Gradle gets changed |
The issue is that the plugin's task collects the Git information during the Gradle's configuration phase. The problematic code is in the
These executions have to be inside the I think a solution would be to:
|
Thanks. PRs are also welcomed :-) |
Error:
build.gradle (extracted):
gradle.properties (extracted):
org.gradle.configuration-cache=true
The text was updated successfully, but these errors were encountered: