From 887cb2d8849f21f25a840674ffbffdc4ae4a8a8c Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Mon, 29 Mar 2021 13:51:20 +0700 Subject: Replace system-scoped dependency on commons by granular dependencies There are only two direct dependencies used in AspectJ code: - Commons Digester (module 'testing') - Commons Logging (module 'org.aspectj.matcher') I declared those two and experimentally removed all the other system-scoped dependencies, as it should be. Let's see if the build works with transitive dependencies. Signed-off-by: Alexander Kriegisch --- libx/pom.xml | 38 +++++++++++++++++++------------------- org.aspectj.matcher/pom.xml | 9 +++------ pom.xml | 12 ++++++++++++ run-all-junit-tests/pom.xml | 2 ++ testing-drivers/pom.xml | 2 ++ testing/pom.xml | 8 +++----- tests/pom.xml | 2 ++ weaver/pom.xml | 2 ++ 8 files changed, 45 insertions(+), 30 deletions(-) diff --git a/libx/pom.xml b/libx/pom.xml index fcd092162..27d3ce767 100644 --- a/libx/pom.xml +++ b/libx/pom.xml @@ -55,9 +55,9 @@ wget - https://github.com/apache/commons-beanutils/archive/refs/tags/BEANUTILS_1_4.zip + https://github.com/apache/commons-beanutils/archive/refs/tags/${lib.commons.beanutils.tag}.zip commons - commons-beanutils-1.4-sources.jar + commons-beanutils-${lib.commons.beanutils.version}-sources.jar b2c02afe7e6475cd7c811932b8415d171a8afa00 @@ -81,9 +81,9 @@ wget - https://github.com/apache/commons-digester/archive/refs/tags/DIGESTER_1_3.zip + https://github.com/apache/commons-digester/archive/refs/tags/${lib.commons.digester.tag}.zip commons - commons-digester-1.3-sources.jar + commons-digester-${lib.commons.digester.version}-sources.jar 49f653c7ea726301c564f9662b72c051fee9390a @@ -94,9 +94,9 @@ wget - https://github.com/apache/commons-logging/archive/refs/tags/LOGGING_1_0_1.zip + https://github.com/apache/commons-logging/archive/refs/tags/${lib.commons.logging.tag}.zip commons - commons-logging-1.0.1-sources.jar + commons-logging-${lib.commons.logging.version}-sources.jar c61a373f6d50ff8fcfba900934f7254d44f9735b @@ -238,11 +238,11 @@ commons-beanutils commons-beanutils - 1.4 + ${lib.commons.beanutils.version} jar false commons - commons-beanutils-1.4.jar + commons-beanutils-${lib.commons.beanutils.version}.jar @@ -260,22 +260,22 @@ commons-digester commons-digester - 1.3 + ${lib.commons.digester.version} jar false commons - commons-digester-1.3.jar + commons-digester-${lib.commons.digester.version}.jar - + commons-logging commons-logging - 1.0.1 + ${lib.commons.logging.version} jar false commons - commons-logging-1.0.1.jar + commons-logging-${lib.commons.logging.version}.jar @@ -395,7 +395,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-beanutils-1.4.jar + commons/commons-beanutils-${lib.commons.beanutils.version}.jar commons/commons.jar @@ -431,7 +431,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-digester-1.3.jar + commons/commons-digester-${lib.commons.digester.version}.jar commons/commons.jar @@ -449,7 +449,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-logging-1.0.1.jar + commons/commons-logging-${lib.commons.logging.version}.jar commons/commons.jar @@ -488,7 +488,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-beanutils-1.4-sources.jar/commons-beanutils-BEANUTILS_1_4/src/java + commons/commons-beanutils-${lib.commons.beanutils.version}-sources.jar/commons-beanutils-${lib.commons.beanutils.tag}/src/java commons/commons-src.zip @@ -524,7 +524,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-digester-1.3-sources.jar/commons-digester-DIGESTER_1_3/src/java + commons/commons-digester-${lib.commons.digester.version}-sources.jar/commons-digester-${lib.commons.digester.tag}/src/java commons/commons-src.zip @@ -542,7 +542,7 @@ This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they were normal file system paths. No additional moves and deletes with Antrun are necessary. --> - commons/commons-logging-1.0.1-sources.jar/commons-logging-LOGGING_1_0_1/src/java + commons/commons-logging-${lib.commons.logging.version}-sources.jar/commons-logging-${lib.commons.logging.tag}/src/java commons/commons-src.zip diff --git a/org.aspectj.matcher/pom.xml b/org.aspectj.matcher/pom.xml index 2af081949..b81290162 100644 --- a/org.aspectj.matcher/pom.xml +++ b/org.aspectj.matcher/pom.xml @@ -30,15 +30,12 @@ ${project.version} - commons - commons - 1.0 - system - ${project.basedir}/../lib/commons/commons.jar + commons-logging + commons-logging + ${lib.commons.logging.version} - diff --git a/pom.xml b/pom.xml index 56ffa2ff7..d08245d55 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,12 @@ 1.6.3 2.6.2 1.2 + 1.4 + BEANUTILS_1_4 + 1.3 + DIGESTER_1_3 + 1.0.1 + LOGGING_1_0_1 @@ -192,6 +198,12 @@ pom import + + + commons-beanutils + commons-beanutils + ${lib.commons.beanutils.version} + diff --git a/run-all-junit-tests/pom.xml b/run-all-junit-tests/pom.xml index a6407370d..a4d186e26 100644 --- a/run-all-junit-tests/pom.xml +++ b/run-all-junit-tests/pom.xml @@ -227,6 +227,7 @@ ${project.version} test-jar + ant diff --git a/testing-drivers/pom.xml b/testing-drivers/pom.xml index f3ac5fa36..8268d073f 100644 --- a/testing-drivers/pom.xml +++ b/testing-drivers/pom.xml @@ -55,6 +55,7 @@ asm ${project.version} + org.aspectj testing diff --git a/testing/pom.xml b/testing/pom.xml index bbbe67319..9017efedd 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -133,11 +133,9 @@ 4.13 - commons - commons - 1.0 - system - ${project.basedir}/../lib/commons/commons.jar + commons-digester + commons-digester + ${lib.commons.digester.version} org.aspectj diff --git a/tests/pom.xml b/tests/pom.xml index f325b7bd2..97ea6c30c 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -118,6 +118,7 @@ ant-launcher ${lib.ant.version} + diff --git a/weaver/pom.xml b/weaver/pom.xml index 48703bf81..fcbae1c8b 100644 --- a/weaver/pom.xml +++ b/weaver/pom.xml @@ -66,6 +66,7 @@ bcel-builder ${project.version} + asm asm -- cgit v1.2.3