diff --git a/hystrix-contrib/hystrix-network-auditor-agent/build.gradle b/hystrix-contrib/hystrix-network-auditor-agent/build.gradle index 43c191346..18c82d75d 100644 --- a/hystrix-contrib/hystrix-network-auditor-agent/build.gradle +++ b/hystrix-contrib/hystrix-network-auditor-agent/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + dependencies { compile 'org.javassist:javassist:3.16.1-GA' @@ -15,3 +18,19 @@ dependencies { } } } + +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} diff --git a/hystrix-contrib/hystrix-request-servlet/build.gradle b/hystrix-contrib/hystrix-request-servlet/build.gradle index 69339c3e3..2ffd52bb4 100644 --- a/hystrix-contrib/hystrix-request-servlet/build.gradle +++ b/hystrix-contrib/hystrix-request-servlet/build.gradle @@ -1,5 +1,24 @@ apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + dependencies { compile project(':hystrix-core') provided 'javax.servlet:servlet-api:2.5' } + +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} diff --git a/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle b/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle index 48f694751..4a8d8294d 100644 --- a/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle +++ b/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle @@ -1,5 +1,24 @@ apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + dependencies { compile project(':hystrix-core') compile 'com.netflix.servo:servo-core:0.4.27' } + +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} diff --git a/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle b/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle index 86270956b..8029f93f8 100644 --- a/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle +++ b/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle @@ -1,5 +1,24 @@ apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + dependencies { compile project(':hystrix-core') compile 'com.yammer.metrics:metrics-core:2.2.0' } + +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} diff --git a/hystrix-examples-webapp/build.gradle b/hystrix-examples-webapp/build.gradle index bdf4e01d9..528fa35bc 100644 --- a/hystrix-examples-webapp/build.gradle +++ b/hystrix-examples-webapp/build.gradle @@ -1,6 +1,8 @@ apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' +apply plugin: 'eclipse' +apply plugin: 'idea' dependencies { compile project(':hystrix-core') @@ -13,4 +15,18 @@ jettyRun { httpPort = 8989 } +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} diff --git a/hystrix-examples/build.gradle b/hystrix-examples/build.gradle index 6cc164d60..9bf51fda6 100644 --- a/hystrix-examples/build.gradle +++ b/hystrix-examples/build.gradle @@ -1,4 +1,7 @@ apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' + dependencies { compile project(':hystrix-core') provided 'junit:junit-dep:4.10' @@ -9,3 +12,18 @@ task(runDemo, dependsOn: 'classes', type: JavaExec) { classpath = sourceSets.main.runtimeClasspath } +eclipse { + classpath { + // include 'provided' dependencies on the classpath + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +}