How to get rid of "generateEffectiveLombokConfig... without declaring an explicit or implicit dependency" error #482
-
First, thanks for the plugin. I'm seeing the same gradle warning as others have. I've tried addressing by adding dependencies and updating to 6.4.0, but I still can't get it to go away. I'm hoping you can point me to what I'm doing wrong.
Important parts from my build.gradle (slightly redacted)
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Gradle does not know that parts of You could try something like this: sourceSets.main.java.srcDirs generateMyClasses or sourceSets.main.java.srcDirs files("${buildDir}/generated-src/java").builtBy(generateMyClasses) |
Beta Was this translation helpful? Give feedback.
-
This works for me:
|
Beta Was this translation helpful? Give feedback.
Gradle does not know that parts of
sourceSets.main.java
are created by yourgenerateMyClasses
task. Therefore all tasks usingsourceSets.main.java
as input (likecompileJava
orgenerateEffectiveLombokConfig
) do not get an implicit dependency on your task.You could try something like this:
or