I have two projects A and B. A adds the groovy plugin, B adds the war plugin. B has a dependency on A:
dependencies {
compile project(':A')
}
I want to exclude a compile time dependency declared in A from the product of B A declares this dependency
dependencies {
compile ':some-jar:1.0'
}
and resolves from a local library directory B tries to exclude this with
dependencies {
compile(project(':A')) {
exclude module: 'some-jar'
}
}
However, the jar is still included in the resulting war file. How can I exclude it?
Thanks, Paul