From acdc2858833d87395c32037e4b7dcc2601189350 Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Fri, 15 Mar 2024 12:17:48 +0100 Subject: Remove Apache Commons from 'lib' module, update remaining dependencies Of beanutils, collections, digester and logging actually only digester and logging are directly used in AspectJ code. Therefore, remove the unused ones and upgrade the remaining libraries' versions to ones which also have source JARs on Maven Central. This makes downloading sources from GitHub and packaging separate commons.jar and commons-src.zip artifacts superfluous. Hence, we can get rid of them completely. Signed-off-by: Alexander Kriegisch --- testing/pom.xml | 8 ++++---- .../java/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java | 2 +- testing/src/test/java/org/aspectj/testing/MakeTestClass.java | 2 +- .../src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java | 2 +- .../src/test/java/org/aspectj/testing/xml/AjcSpecXmlReader.java | 2 +- .../test/java/org/aspectj/testing/xml/MessageListXmlReader.java | 5 +---- 6 files changed, 9 insertions(+), 12 deletions(-) (limited to 'testing') diff --git a/testing/pom.xml b/testing/pom.xml index 80d3bf16b..91e175fb0 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -111,9 +111,9 @@ ${lib.ant.xerces.version} - commons-digester - commons-digester - ${lib.commons.digester.version} + org.apache.commons + commons-digester3 + ${commons.digester.version} org.aspectj @@ -123,7 +123,7 @@ commons-logging commons-logging - ${lib.commons.logging.version} + ${commons.logging.version} diff --git a/testing/src/test/java/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java b/testing/src/test/java/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java index 3769f9326..6be56d2c9 100644 --- a/testing/src/test/java/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java +++ b/testing/src/test/java/org/aspectj/testing/AutowiredXMLBasedAjcTestCase.java @@ -15,7 +15,7 @@ import java.lang.reflect.Method; import java.util.HashMap; import java.util.Map; -import org.apache.commons.digester.Digester; +import org.apache.commons.digester3.Digester; import org.aspectj.tools.ajc.Ajc; import junit.extensions.TestSetup; diff --git a/testing/src/test/java/org/aspectj/testing/MakeTestClass.java b/testing/src/test/java/org/aspectj/testing/MakeTestClass.java index 91cee0ea2..2a55adff7 100644 --- a/testing/src/test/java/org/aspectj/testing/MakeTestClass.java +++ b/testing/src/test/java/org/aspectj/testing/MakeTestClass.java @@ -12,7 +12,7 @@ import java.text.NumberFormat; import java.util.ArrayList; import java.util.List; -import org.apache.commons.digester.Digester; +import org.apache.commons.digester3.Digester; /** * @author colyer diff --git a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java index 440bd9821..fa164313e 100644 --- a/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java +++ b/testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java @@ -28,7 +28,7 @@ import java.util.Map; import java.util.Stack; import junit.framework.TestCase; -import org.apache.commons.digester.Digester; +import org.apache.commons.digester3.Digester; import org.aspectj.apache.bcel.classfile.Attribute; import org.aspectj.apache.bcel.classfile.JavaClass; import org.aspectj.apache.bcel.classfile.LocalVariable; diff --git a/testing/src/test/java/org/aspectj/testing/xml/AjcSpecXmlReader.java b/testing/src/test/java/org/aspectj/testing/xml/AjcSpecXmlReader.java index af822c478..078624b98 100644 --- a/testing/src/test/java/org/aspectj/testing/xml/AjcSpecXmlReader.java +++ b/testing/src/test/java/org/aspectj/testing/xml/AjcSpecXmlReader.java @@ -23,7 +23,7 @@ import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; -import org.apache.commons.digester.Digester; +import org.apache.commons.digester3.Digester; import org.aspectj.bridge.AbortException; import org.aspectj.bridge.IMessage; import org.aspectj.bridge.ISourceLocation; diff --git a/testing/src/test/java/org/aspectj/testing/xml/MessageListXmlReader.java b/testing/src/test/java/org/aspectj/testing/xml/MessageListXmlReader.java index 46352a0a2..6e3584c46 100644 --- a/testing/src/test/java/org/aspectj/testing/xml/MessageListXmlReader.java +++ b/testing/src/test/java/org/aspectj/testing/xml/MessageListXmlReader.java @@ -20,7 +20,7 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.List; -import org.apache.commons.digester.Digester; +import org.apache.commons.digester3.Digester; import org.aspectj.bridge.AbortException; import org.aspectj.bridge.IMessage; import org.aspectj.bridge.ISourceLocation; @@ -210,6 +210,3 @@ public class MessageListXmlReader { } } - - - -- cgit v1.2.3