Permalink
Browse files

Use a workaround to provide a "provided" dependency configuration

  • Loading branch information...
1 parent 59dc5a0 commit 6164ab1c68c578a34dd375326b77b94a259e6d11 @hlship committed Mar 15, 2011
Showing with 10 additions and 2 deletions.
  1. +9 −0 build.gradle
  2. +1 −2 tapx-core/build.gradle
View
9 build.gradle
@@ -32,6 +32,15 @@ subprojects {
configurations {
deployerJars
+ provided
+ }
+
+ // See http://jira.codehaus.org/browse/GRADLE-784
+
+ sourceSets {
+ main {
+ compileClasspath += configurations.provided
+ }
}
dependencies {
View
3 tapx-core/build.gradle
@@ -1,8 +1,7 @@
description = "Common general components"
dependencies {
- // This should be providedCompile, once Gradle supports it
- compile "javax.servlet:servlet-api:2.4"
+ provided "javax.servlet:servlet-api:2.4"
}
jar {

0 comments on commit 6164ab1

Please sign in to comment.