David Gileadi wrote:
>
> So my question is, does anyone have a suggestion on how to gain this
> effect in Gradle?
>
It's fairly easy to simulate Maven's 'provided' scope in Gradle:
configurations {
provided
}
dependencies {
provided "some:dep:1.0"
}
sourceSets {
main {
compileClasspath += configurations.provided
}
test {
compileClasspath += configurations.provided
runtimeClasspath += configurations.provided
}
}
idea {
module {
scopes.PROVIDED.plus += configurations.provided
}
}
Depending on your exact needs, you could omit configuring the test class
paths and/or IDEA class path.
--
Peter Niederwieser
Principal Engineer, Gradleware
http://gradleware.com
Creator, Spock Framework
http://spockframework.org
Blog: http://pniederw.wordpress.com
Twitter: @pniederw
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Excluding-provided-dependencies-with-m2metadata-tp4452535p4453044.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email