I have a provided configuration defined in the master project build.gradle as below:
subprojects{
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
}
I reference this in the subproject dependencies:
dependencies {
provided fileTree(dir: "${wasPluginsDir}", include: '*.jar')
}
This works when building from the command line/Gradle tasks view but does not build correctly within eclipse as the dependencies aren’t found by eclipse.
Has anyone found a way to get something like this to work for both use cases?