We recently migrated to Gradle 2.0 and Eclipse integration seems to be broken for provided scope. I have the following in my Build.gradle.
I did try the netflix provided plugin , but that does not help because its even packaging provided scope, When i use it with ShadowJar plugin.
So i would need to make another implementation work. So Eclipse integration works and fat jar does not contain it.
apply plugin: 'java'
apply plugin: 'eclipse'
configurations {
provided
}
dependencies {
provided group: 'org.apache.hadoop', name: 'hadoop-client', version:'2.0.0-mr1-cdh4.6.0'
}
sourceSets {
main.compileClasspath += [configurations.provided]
test.compileClasspath += [configurations.provided]
test.runtimeClasspath += [configurations.provided]
}
eclipse.classpath.plusConfigurations += [configurations.provided]
// Eclipse users only