Skip to content

Support Gradle's configuration cache with Gradle 6.7 and later #22922

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

Closed
ractive opened this issue Aug 12, 2020 · 0 comments
Closed

Support Gradle's configuration cache with Gradle 6.7 and later #22922

ractive opened this issue Aug 12, 2020 · 0 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@ractive
Copy link
Contributor

ractive commented Aug 12, 2020

When playing around with the new configuration cache in gradle 6.6 I got this error when building our spring boot project with ./gradlew --configuration-cache --configuration-cache-problems=warn build:
"Listener registration 'Gradle.buildFinished' by build 'myproject' is unsupported." together with this stack trace:

        org.gradle.api.InvalidUserCodeException: Listener registration 'Gradle.buildFinished' by build 'backend' is unsupported.
        	at org.gradle.instantexecution.initialization.DefaultInstantExecutionProblemsListener.onBuildScopeListenerRegistration(InstantExecutionProblemsListener.kt:88)
        	at jdk.internal.reflect.GeneratedMethodAccessor276.invoke(Unknown Source)
        	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
        	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
        	at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:398)
        	at org.gradle.internal.event.DefaultListenerManager$ListenerDetails.dispatch(DefaultListenerManager.java:380)
        	at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)
        	at org.gradle.internal.event.DefaultListenerManager$EventBroadcast$ListenerDispatch.dispatch(DefaultListenerManager.java:368)
        	at org.gradle.internal.event.DefaultListenerManager$EventBroadcast.dispatch(DefaultListenerManager.java:179)
        	at org.gradle.internal.event.DefaultListenerManager$EventBroadcast.dispatch(DefaultListenerManager.java:153)
        	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
        	at com.sun.proxy.$Proxy24.onBuildScopeListenerRegistration(Unknown Source)
        	at org.gradle.invocation.DefaultGradle.notifyListenerRegistration(DefaultGradle.java:401)
        	at org.gradle.invocation.DefaultGradle.buildFinished(DefaultGradle.java:382)
        	at org.springframework.boot.gradle.plugin.SpringBootPlugin.unregisterUnresolvedDependenciesAnalyzer(SpringBootPlugin.java:135)
        	.....

It would be great to find a solution that's compatible with the configuration cache here:
https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java#L141

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 12, 2020
@philwebb philwebb added the for: team-attention An issue we'd like other members of the team to review label Aug 19, 2020
@philwebb philwebb changed the title spring-boot-gradle-plugin: "Gradle.buildFinished" unsupported by new gradle configuration cache Support Gradle 6.6+ configuration cache feature Aug 24, 2020
@philwebb philwebb added type: enhancement A general enhancement and removed for: team-attention An issue we'd like other members of the team to review status: waiting-for-triage An issue we've not yet triaged labels Aug 24, 2020
@philwebb philwebb added this to the 2.4.x milestone Aug 24, 2020
@wilkinsona wilkinsona self-assigned this Oct 14, 2020
@wilkinsona wilkinsona changed the title Support Gradle 6.6+ configuration cache feature Support Gradle's configuration cache with Gradle 6.7 and later Oct 17, 2020
@wilkinsona wilkinsona modified the milestones: 2.4.x, 2.4.0-RC1 Oct 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants