You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Custom gradle configurations are not properly picked up #4039
We have a module which generates JOOQ sources and compiles them into java classes.
The module also contains some classes under a/src/main/java which help to produce the JOOQ sources as part of the compileJava task.
So we have something like this in our A module:
val generatedDbDataJar: Configuration by configurations.creating {
isCanBeConsumed = true
isCanBeResolved = false
extendsFrom(configurations["implementation"], configurations["runtimeOnly"])
}
And in our B module we have something like this which consumes it:
implementation(project(mapOf("path" to ":A")))
implementation(project(mapOf("path" to ":A", "configuration" to "generatedDbDataJar")))
This setup works absolutely fine if you run ./gradlew build, in Eclipse and in IntelliJ.
However, in Cursor or VSCode the setup above does not work and the produced classes are not recognized in module B and are showing as "missing" classes in the IDE.
It looks to us like this is a bug, unless there's a specific configuration for this case?
Reacted by benstpierre
Activity
mykhailonesterenko-cyber commented on May 12, 2026
Activity
mykhailonesterenko-cyber commentedon May 12, 2026
you have to use
eclipse.classpath.plusConfigurations << customConfigurationconfiguration