@@ -52,8 +52,6 @@ List runtime = [
5252configurations {
5353 // Exclude the bundled org.json library from com.fasterxml.jackson.datatype:jackson-datatype-json-org dependency
5454 all* . exclude group : " org.apache.geronimo.bundles" , module : " json"
55- // Avoid pulling in the Activation API because we don't want to conflict with one loaded from $CATALINA_HOME/lib
56- all* . exclude group : " jakarta.activation" , module : " jakarta.activation-api"
5755
5856 // this configuration and its artifact are declared because the default outgoing variant for the api
5957 // module (runtimeElements) does not include all the class files since the classes compiled from
@@ -98,11 +96,25 @@ dependencies {
9896 runtimeOnly runtime
9997
10098 BuildUtils . addTomcatBuildDependencies(project, " implementation" )
101- // the following two libraries are required for compilation but we don't want extra ones in the classpath, so we exclude
102- // them from external dependencies in favor of the versions in the tomcat directory (FIXME seems somewhat sketchy...)
99+
100+ // needed for compilation but Tomcat provides the implementation
103101 api " jakarta.servlet:jakarta.servlet-api:${ servletApiVersion} "
104- api " com.sun.mail:jakarta.mail:${ javaMailVersion} "
105102
103+ // Angus Mail is an implementation of the Jakarta Mail API, which it pulls in as a dependency
104+ BuildUtils . addExternalDependency(
105+ project,
106+ new ExternalDependency (
107+ " org.eclipse.angus:angus-mail:${ angusMailVersion} " ,
108+ " Angus Mail" ,
109+ " Eclipse Foundation" ,
110+ " https://eclipse-ee4j.github.io/angus-mail/" ,
111+ " Eclipse Public License 2.0" ,
112+ " https://projects.eclipse.org/license/epl-2.0" ,
113+ " Implementation of the Jakarta Mail API" ,
114+ )
115+ )
116+
117+ // Angus Activation is an implementation of the Jakarta Activation API, which it pulls in as a dependency
106118 BuildUtils . addExternalDependency(
107119 project,
108120 new ExternalDependency (
@@ -281,7 +293,7 @@ dependencies {
281293 " https://commons.apache.org/proper/commons-text/" ,
282294 ExternalDependency . APACHE_2_LICENSE_NAME ,
283295 ExternalDependency . APACHE_2_LICENSE_URL ,
284- " String algorithms" ,
296+ " String algorithms"
285297 )
286298 )
287299
@@ -294,21 +306,21 @@ dependencies {
294306 " http://jakarta.apache.org/commons/validator/" ,
295307 ExternalDependency . APACHE_2_LICENSE_NAME ,
296308 ExternalDependency . APACHE_2_LICENSE_URL ,
297- " Data validation and error messages" ,
309+ " Data validation and error messages"
298310 )
299311 )
300312
301313 BuildUtils . addExternalDependency(
302- project,
303- new ExternalDependency (
304- " org.apache.commons:commons-vfs2:${ commonsVfs2Version} " ,
305- " Commons Virtual File System" ,
306- " Apache" ,
307- " https://commons.apache.org/proper/commons-vfs/" ,
308- ExternalDependency . APACHE_2_LICENSE_NAME ,
309- ExternalDependency . APACHE_2_LICENSE_URL ,
310- " Consistent API for accessing files of different types" ,
311- )
314+ project,
315+ new ExternalDependency (
316+ " org.apache.commons:commons-vfs2:${ commonsVfs2Version} " ,
317+ " Commons Virtual File System" ,
318+ " Apache" ,
319+ " https://commons.apache.org/proper/commons-vfs/" ,
320+ ExternalDependency . APACHE_2_LICENSE_NAME ,
321+ ExternalDependency . APACHE_2_LICENSE_URL ,
322+ " Consistent API for accessing files of different types"
323+ )
312324 )
313325
314326
@@ -322,7 +334,7 @@ dependencies {
322334 " http://code.google.com/p/flying-saucer/" ,
323335 ExternalDependency . LGPL_LICENSE_NAME ,
324336 ExternalDependency . LGPL_LICENSE_URL ,
325- " XHTML/CSS rendering library" ,
337+ " XHTML/CSS rendering library"
326338 )
327339 )
328340
0 commit comments