Skip to content

Commit

Permalink
Using gradle-template version of provided, fixing deps missing once p…
Browse files Browse the repository at this point in the history
…rovided was done

Conflicts:
	hystrix-contrib/hystrix-metrics-event-stream/build.gradle
  • Loading branch information
Justin Ryan committed Dec 14, 2012
1 parent da57e54 commit a4662be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
22 changes: 1 addition & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,7 @@ subprojects {

group = "com.netflix.${githubProjectName}"

sourceSets {
test {
java {
srcDir 'src/main/java'
}
}
}
// Establish a provided scope
configurations {
provided {
description = 'Dependencies needed for compile but are provided at runtime or not needed'
transitive = false
visible = false
}
compile.extendsFrom provided
}
sourceSets {
main.compileClasspath += configurations.provided
main.runtimeClasspath -= configurations.provided
test.compileClasspath += configurations.provided
}
sourceSets.test.java.srcDir 'src/main/java'

}

1 change: 1 addition & 0 deletions hystrix-contrib/hystrix-metrics-event-stream/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
compile project(':hystrix-core')
compile 'org.codehaus.jackson:jackson-core-asl:1.9.2'
provided 'javax.servlet:servlet-api:2.5'
provided 'junit:junit:4.10'
}
4 changes: 3 additions & 1 deletion hystrix-examples/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
apply plugin: 'java'
dependencies {
compile project(':hystrix-core')
provided 'junit:junit:4.10'
}

task(runDemo, dependsOn: 'classes', type: JavaExec) {
main = 'com.netflix.hystrix.examples.demo.HystrixCommandDemo'
classpath = sourceSets.main.runtimeClasspath
}
}

0 comments on commit a4662be

Please sign in to comment.