From: Alexander Kriegisch Date: Fri, 15 Mar 2024 11:17:48 +0000 (+0100) Subject: Remove Apache Commons from 'lib' module, update remaining dependencies X-Git-Tag: V1_9_22~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=acdc2858833d87395c32037e4b7dcc2601189350;p=aspectj.git 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 --- diff --git a/.gitignore b/.gitignore index 043448a85..21ffd64ed 100644 --- a/.gitignore +++ b/.gitignore @@ -34,7 +34,6 @@ bin/ # Downloaded libraries used during tests + marker file /lib/provisioned.marker /lib/ant/ -/lib/commons/ /lib/jarjar/ /lib/jdtcore-aj/ /lib/junit/ diff --git a/lib/pom.xml b/lib/pom.xml index ff1fcc251..86d89e040 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -87,58 +87,6 @@ b9f3c8c31bb6c9069ad5b655059a17769af12f20 - - download-beanutils-sources - generate-resources - - wget - - - https://github.com/apache/commons-beanutils/archive/refs/tags/${lib.commons.beanutils.tag}.zip - commons - commons-beanutils-${lib.commons.beanutils.version}-sources.jar - b2c02afe7e6475cd7c811932b8415d171a8afa00 - - - - download-collections-sources - generate-resources - - wget - - - https://github.com/apache/commons-collections/archive/refs/tags/${lib.commons.collections.tag}.zip - commons - commons-collections-${lib.commons.collections.version}-sources.jar - 824cacd0aafe21a94fb142388fd62f28a12df5ef - - - - download-digester-sources - generate-resources - - wget - - - https://github.com/apache/commons-digester/archive/refs/tags/${lib.commons.digester.tag}.zip - commons - commons-digester-${lib.commons.digester.version}-sources.jar - 49f653c7ea726301c564f9662b72c051fee9390a - - - - download-logging-sources - generate-resources - - wget - - - https://github.com/apache/commons-logging/archive/refs/tags/${lib.commons.logging.tag}.zip - commons - commons-logging-${lib.commons.logging.version}-sources.jar - c61a373f6d50ff8fcfba900934f7254d44f9735b - - @@ -231,62 +179,6 @@ jakarta-regexp-1.2.jar - - - - - commons-beanutils - commons-beanutils - ${lib.commons.beanutils.version} - jar - false - commons - commons-beanutils-${lib.commons.beanutils.version}.jar - - - - - commons-collections - commons-collections - 2.0 - jar - false - commons - commons-collections-2.0.jar - - - - - commons-digester - commons-digester - ${lib.commons.digester.version} - jar - false - commons - commons-digester-${lib.commons.digester.version}.jar - - - - - commons-logging - commons-logging - ${lib.commons.logging.version} - jar - false - commons - commons-logging-${lib.commons.logging.version}.jar - - @@ -330,118 +222,6 @@ - - zip-beanutils-binaries - process-resources - - copy - - - true - - commons/commons-beanutils-${lib.commons.beanutils.version}.jar - commons/commons.jar - - - - - zip-collections-binaries - process-resources - - copy - - - true - - commons/commons-collections-${lib.commons.collections.version}.jar - commons/commons.jar - - - - - zip-digester-binaries - process-resources - - copy - - - true - - commons/commons-digester-${lib.commons.digester.version}.jar - commons/commons.jar - - - - - zip-logging-binaries - process-resources - - copy - - - true - - commons/commons-logging-${lib.commons.logging.version}.jar - commons/commons.jar - - - - - zip-beanutils-sources - process-resources - - copy - - - true - - commons/commons-beanutils-${lib.commons.beanutils.version}-sources.jar/commons-beanutils-${lib.commons.beanutils.tag}/src/java - commons/commons-src.zip - - - - - zip-collections-sources - process-resources - - copy - - - true - - commons/commons-collections-${lib.commons.collections.version}-sources.jar/commons-collections-${lib.commons.collections.tag}/src/java - commons/commons-src.zip - - - - - zip-digester-sources - process-resources - - copy - - - true - - commons/commons-digester-${lib.commons.digester.version}-sources.jar/commons-digester-${lib.commons.digester.tag}/src/java - commons/commons-src.zip - - - - - zip-logging-sources - process-resources - - copy - - - true - - commons/commons-logging-${lib.commons.logging.version}-sources.jar/commons-logging-${lib.commons.logging.tag}/src/java - commons/commons-src.zip - - - @@ -505,7 +285,6 @@ ${lib.provisioned.marker} ant/** - commons/** jarjar/** jdtcore-aj/** junit/** @@ -555,7 +334,6 @@ ${lib.provisioned.marker} ant/bin/ant.bat ant/lib/junit.jar - commons/commons.jar jarjar/jarjar-1.3.jar jdtcore-aj/jdtcore-for-aspectj.jar junit/junit.jar diff --git a/org.aspectj.matcher/pom.xml b/org.aspectj.matcher/pom.xml index 96d0bf7f3..251c75e01 100644 --- a/org.aspectj.matcher/pom.xml +++ b/org.aspectj.matcher/pom.xml @@ -31,7 +31,7 @@ commons-logging commons-logging - ${lib.commons.logging.version} + ${commons.logging.version} diff --git a/pom.xml b/pom.xml index 01a0b5699..15319c20b 100644 --- a/pom.xml +++ b/pom.xml @@ -29,17 +29,11 @@ 1.9.21.1 9.6 + 3.2 + 1.3.0 1.6.3 2.6.2 1.2 - 1.4 - BEANUTILS_1_4 - 2.0 - collections-2.0 - 1.3 - DIGESTER_1_3 - 1.0.1 - LOGGING_1_0_1 @@ -628,12 +622,6 @@ org.eclipse.jdt.core ${jdt.core.version} - - - commons-beanutils - commons-beanutils - ${lib.commons.beanutils.version} - org.ow2.asm asm 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 { } } - - -