From 26c50092f969831d42199ad2b0b89b4c96226b67 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 6 May 2014 20:33:05 +0100 Subject: [PATCH] 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 --- build.gradle | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 22de71085..0e62ce445 100644 --- a/build.gradle +++ b/build.gradle @@ -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') {