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

StackOverflowError in Gradle 6.3 (but not for other Gradle versions) #193

Open
akibabu opened this issue Nov 22, 2021 · 1 comment · May be fixed by #194
Open

StackOverflowError in Gradle 6.3 (but not for other Gradle versions) #193

akibabu opened this issue Nov 22, 2021 · 1 comment · May be fixed by #194

Comments

@akibabu
Copy link

akibabu commented Nov 22, 2021

This is when executing the task generateGitProperties in a typical single module Java project.

When changing to Gradle 6.4 it works fine, but Gradle 6.3 gives this error:

Caused by: java.lang.StackOverflowError

	at com.gorylenko.GitPropertiesPluginExtension.toString(GitPropertiesPlugin.groovy)

	at org.gradle.internal.instantiation.generator.ManagedObjectFactory$ManagedPropertyName.getDisplayName(ManagedObjectFactory.java:141)

	at org.gradle.internal.instantiation.generator.ManagedObjectFactory$ManagedPropertyName.toString(ManagedObjectFactory.java:130)

	at org.gradle.api.internal.provider.AbstractProperty.toString(AbstractProperty.java:118)

	at com.gorylenko.GitPropertiesPluginExtension.toString(GitPropertiesPlugin.groovy)

	at org.gradle.internal.instantiation.generator.ManagedObjectFactory$ManagedPropertyName.getDisplayName(ManagedObjectFactory.java:141)

	at org.gradle.internal.instantiation.generator.ManagedObjectFactory$ManagedPropertyName.toString(ManagedObjectFactory.java:130)

	at org.gradle.api.internal.provider.AbstractProperty.toString(AbstractProperty.java:118)

	at com.gorylenko.GitPropertiesPluginExtension.toString(GitPropertiesPlugin.groovy)

The code in question, that has been modified in the 2.3.1 release

This was the fix in Gradle 6.4

gradle/gradle#11466

@tha2015
Copy link
Collaborator

tha2015 commented Feb 7, 2022

Because this issue has been resolved since Gradle 6.4 (05/05/2020), I prefer to close this issue instead of updating the plugin, any ideas?

@tha2015 tha2015 changed the title StackOverflowError in Gradle 6.3 StackOverflowError in Gradle 6.3 (but not for other Gradle versions) Feb 7, 2022
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 a pull request may close this issue.

2 participants