Skip to content

How to get rid of "generateEffectiveLombokConfig... without declaring an explicit or implicit dependency" error #482

Answered by larsgrefer
sc-moonlight asked this question in Q&A
Discussion options

You must be logged in to vote

Gradle does not know that parts of sourceSets.main.java are created by your generateMyClasses task. Therefore all tasks using sourceSets.main.java as input (like compileJava or generateEffectiveLombokConfig) do not get an implicit dependency on your task.

You could try something like this:

sourceSets.main.java.srcDirs generateMyClasses

or

sourceSets.main.java.srcDirs files("${buildDir}/generated-src/java").builtBy(generateMyClasses)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sc-moonlight
Comment options

Answer selected by sc-moonlight
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants