Hi all,
Congratulations for the new release! You're doing a fantastic job.
I have been testing it and found a new feature for adding exclusion rules to
a certain configuration. However, I can't make it work. What I am trying to
do is to copy all my runtime JARs to a directory, but want to exclude
"servlet-api-2.5.jar".
Here is my code snippet:
dependencies {
excludeRules.add(org: "javax.servlet", ["runtime"])
compile "javax.servlet:servlet-api:2.5"
...
}
createTask('copy-to') {
dependencies.resolve("runtime").each {
file -> FileUtils.copyFileToDirectory(file, 'foo/bar')
}
}
Could you please help me with this?
Thanks in advance. Regards
Rafa
--
View this message in context:
http://www.nabble.com/Exclude-JAR-from-a-configuration-tp20861146p20861146.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