diff --git a/hystrix-contrib/hystrix-metrics-event-stream/build.gradle b/hystrix-contrib/hystrix-metrics-event-stream/build.gradle index 042c52ed5..10b446828 100644 --- a/hystrix-contrib/hystrix-metrics-event-stream/build.gradle +++ b/hystrix-contrib/hystrix-metrics-event-stream/build.gradle @@ -1,7 +1,17 @@ - apply plugin: 'java' - dependencies { - compile project(':hystrix-core') - compile 'org.codehaus.jackson:jackson-core-asl:1.9.2' - provided 'javax.servlet:servlet-api:2.5' - provided 'junit:junit-dep:4.10' - } +apply plugin: 'java' +apply plugin: 'eclipse' + +dependencies { + compile project(':hystrix-core') + compile 'org.codehaus.jackson:jackson-core-asl:1.9.2' + provided 'javax.servlet:servlet-api:2.5' + provided 'junit:junit-dep:4.10' +} + +eclipse { + classpath { + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} \ No newline at end of file diff --git a/hystrix-contrib/hystrix-request-servlet/build.gradle b/hystrix-contrib/hystrix-request-servlet/build.gradle index 2acbb2b36..69339c3e3 100644 --- a/hystrix-contrib/hystrix-request-servlet/build.gradle +++ b/hystrix-contrib/hystrix-request-servlet/build.gradle @@ -1,5 +1,5 @@ - apply plugin: 'java' - dependencies { - compile project(':hystrix-core') - provided 'javax.servlet:servlet-api:2.5' - } +apply plugin: 'java' +dependencies { + compile project(':hystrix-core') + provided 'javax.servlet:servlet-api:2.5' +} diff --git a/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle b/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle index b923d68bc..48f694751 100644 --- a/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle +++ b/hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle @@ -1,5 +1,5 @@ - apply plugin: 'java' - dependencies { - compile project(':hystrix-core') - compile 'com.netflix.servo:servo-core:0.4.27' - } +apply plugin: 'java' +dependencies { + compile project(':hystrix-core') + compile 'com.netflix.servo:servo-core:0.4.27' +} diff --git a/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle b/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle index 58f26e868..86270956b 100644 --- a/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle +++ b/hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle @@ -1,5 +1,5 @@ - apply plugin: 'java' - dependencies { - compile project(':hystrix-core') - compile 'com.yammer.metrics:metrics-core:2.2.0' - } +apply plugin: 'java' +dependencies { + compile project(':hystrix-core') + compile 'com.yammer.metrics:metrics-core:2.2.0' +} diff --git a/hystrix-core/build.gradle b/hystrix-core/build.gradle index 7166346c3..81f7f31df 100644 --- a/hystrix-core/build.gradle +++ b/hystrix-core/build.gradle @@ -1,22 +1,31 @@ - apply plugin: 'java' - dependencies { - compile 'com.netflix.archaius:archaius-core:0.4.1' - compile 'org.slf4j:slf4j-api:1.7.0' - compile 'com.google.code.findbugs:jsr305:2.0.0' - provided 'junit:junit-dep:4.10' - } +apply plugin: 'java' +apply plugin: 'eclipse' + +dependencies { + compile 'com.netflix.archaius:archaius-core:0.4.1' + compile 'org.slf4j:slf4j-api:1.7.0' + compile 'com.google.code.findbugs:jsr305:2.0.0' + provided 'junit:junit-dep:4.10' +} - javadoc { - // the exclude isn't working, nor is there a subPackages options as docs suggest there should be - // we do not want the com.netflix.hystrix.util package include - exclude '**/util/**' - - options { - doclet = "org.benjchristensen.doclet.DocletExclude" - docletpath = [rootProject.file('./gradle/doclet-exclude.jar')] - stylesheetFile = rootProject.file('./gradle/javadocStyleSheet.css') - windowTitle = "Hystrix Javadoc ${project.version}" - } - options.addStringOption('top').value = '

Hystrix: Latency and Fault Tolerance for Distributed Systems

' +javadoc { + // the exclude isn't working, nor is there a subPackages options as docs suggest there should be + // we do not want the com.netflix.hystrix.util package include + exclude '**/util/**' + + options { + doclet = "org.benjchristensen.doclet.DocletExclude" + docletpath = [rootProject.file('./gradle/doclet-exclude.jar')] + stylesheetFile = rootProject.file('./gradle/javadocStyleSheet.css') + windowTitle = "Hystrix Javadoc ${project.version}" } - + options.addStringOption('top').value = '

Hystrix: Latency and Fault Tolerance for Distributed Systems

' +} + +eclipse { + classpath { + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} \ No newline at end of file diff --git a/hystrix-dashboard/build.gradle b/hystrix-dashboard/build.gradle index c7fcc7088..5c112fe51 100644 --- a/hystrix-dashboard/build.gradle +++ b/hystrix-dashboard/build.gradle @@ -1,14 +1,23 @@ apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' +apply plugin: 'eclipse' - dependencies { - provided 'javax.servlet:servlet-api:2.5' - compile 'org.apache.httpcomponents:httpclient:4.2.1' - compile 'log4j:log4j:1.2.17' - compile 'org.slf4j:slf4j-api:1.7.0' - } +dependencies { + provided 'javax.servlet:servlet-api:2.5' + compile 'org.apache.httpcomponents:httpclient:4.2.1' + compile 'log4j:log4j:1.2.17' + compile 'org.slf4j:slf4j-api:1.7.0' +} jettyRun { httpPort = 7979 } + +eclipse { + classpath { + plusConfigurations += configurations.provided + downloadSources = true + downloadJavadoc = true + } +} \ No newline at end of file diff --git a/hystrix-examples-webapp/build.gradle b/hystrix-examples-webapp/build.gradle index 52c615f92..bdf4e01d9 100644 --- a/hystrix-examples-webapp/build.gradle +++ b/hystrix-examples-webapp/build.gradle @@ -2,12 +2,12 @@ apply plugin: 'java' apply plugin: 'war' apply plugin: 'jetty' - dependencies { - compile project(':hystrix-core') - compile project(':hystrix-examples') - compile project(':hystrix-contrib:hystrix-request-servlet') - compile project(':hystrix-contrib:hystrix-metrics-event-stream') - } +dependencies { + compile project(':hystrix-core') + compile project(':hystrix-examples') + compile project(':hystrix-contrib:hystrix-request-servlet') + compile project(':hystrix-contrib:hystrix-metrics-event-stream') +} jettyRun { httpPort = 8989 diff --git a/hystrix-examples/build.gradle b/hystrix-examples/build.gradle index d5c63bb06..6cc164d60 100644 --- a/hystrix-examples/build.gradle +++ b/hystrix-examples/build.gradle @@ -1,11 +1,11 @@ - apply plugin: 'java' - dependencies { - compile project(':hystrix-core') - provided 'junit:junit-dep:4.10' - } - - task(runDemo, dependsOn: 'classes', type: JavaExec) { - main = 'com.netflix.hystrix.examples.demo.HystrixCommandDemo' - classpath = sourceSets.main.runtimeClasspath - } +apply plugin: 'java' +dependencies { + compile project(':hystrix-core') + provided 'junit:junit-dep:4.10' +} + +task(runDemo, dependsOn: 'classes', type: JavaExec) { + main = 'com.netflix.hystrix.examples.demo.HystrixCommandDemo' + classpath = sourceSets.main.runtimeClasspath +}