Polish spring-ws-support's dependencies

Use separate API and implementation dependencies for JavaMail. This
paves the way for JavaMail 1.5 where javax.mail:mail is no more.

Exclude the mail dependency from mock-javamail to avoid having multiple
copies on the classpath

Exclude the Geronimo JMS spec from ActiveMQ as the official
java.jms:jms-api artifact is already available
This commit is contained in:
Andy Wilkinson
2014-05-06 20:33:05 +01:00
parent ba9fc8d054
commit 26c50092f9

View File

@@ -194,12 +194,17 @@ project('spring-ws-support') {
// Transport
provided("javax.jms:jms-api:1.1-rev-1")
provided("javax.mail:mail:1.4.7")
provided("javax.mail:javax.mail-api:1.4.7")
provided("com.sun.mail:javax.mail:1.4.7")
optional("jivesoftware:smack:3.1.0")
testCompile("commons-httpclient:commons-httpclient:3.1")
testRuntime("org.apache.activemq:activemq-core:4.1.2")
testCompile("org.jvnet.mock-javamail:mock-javamail:1.6")
}
testRuntime("org.apache.activemq:activemq-core:4.1.2") {
exclude group:'org.apache.geronimo.specs', module:'geronimo-jms_1.1_spec'
}
testCompile("org.jvnet.mock-javamail:mock-javamail:1.6") {
exclude group:'javax.mail', module:'mail'
}
}
}
project('spring-ws-security') {