Skip to content

Commit

Permalink
Add intellij idea and eclipse build config
Browse files Browse the repository at this point in the history
  • Loading branch information
fkjellberg committed Apr 6, 2013
1 parent d2e8d80 commit 36aee0e
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 0 deletions.
19 changes: 19 additions & 0 deletions hystrix-contrib/hystrix-network-auditor-agent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'

dependencies {
compile 'org.javassist:javassist:3.16.1-GA'

Expand All @@ -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
}
}
19 changes: 19 additions & 0 deletions hystrix-contrib/hystrix-request-servlet/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
}
19 changes: 19 additions & 0 deletions hystrix-contrib/hystrix-servo-metrics-publisher/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
}
19 changes: 19 additions & 0 deletions hystrix-contrib/hystrix-yammer-metrics-publisher/build.gradle
Original file line number Diff line number Diff line change
@@ -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
}
}
16 changes: 16 additions & 0 deletions hystrix-examples-webapp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'jetty'
apply plugin: 'eclipse'
apply plugin: 'idea'

dependencies {
compile project(':hystrix-core')
Expand All @@ -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
}
}
18 changes: 18 additions & 0 deletions hystrix-examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'

dependencies {
compile project(':hystrix-core')
provided 'junit:junit-dep:4.10'
Expand All @@ -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
}
}

0 comments on commit 36aee0e

Please sign in to comment.