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

AspectJ plugin is not compatible with configuration cache #605

Open
Cazayus opened this issue Oct 18, 2022 · 0 comments
Open

AspectJ plugin is not compatible with configuration cache #605

Cazayus opened this issue Oct 18, 2022 · 0 comments

Comments

@Cazayus
Copy link

Cazayus commented Oct 18, 2022

While trying the new configuration cache feature of gradle, I stumbled upon a weird error :
⚠️cannot serialize object of type org.gradle.api.internal.tasks.DefaultSourceSet📋, a subtype of org.gradle.api.tasks.SourceSet📋, as these are not supported with the configuration cache.

How to reproduce :

  1. Create an empty project and apply the aspectJ plugin (io.freefair.aspectj:6.5.1)
  2. Call the processResources task with configuration cache activated thusly : gradle --configuration-cache processResources

The error redirects to this page of the documentation.

While looking at the code of the AspectJ Plugin, I did not find anything referencing specifically processResources.
I wonder if maybe we are not supposed to use org.gradle.api.tasks.SourceSet anymore ?

larsgrefer added a commit that referenced this issue Oct 18, 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

No branches or pull requests

1 participant