diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-04-12 13:16:29 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2021-04-12 13:16:29 +0700 |
commit | f00f547d7b37647880e7f8fc030f9f96dbad9848 (patch) | |
tree | ec5812ad1a35103fadd6668527df0926494c8d51 | |
parent | 9c62d17de4f69c5cd4c4c35a3ab2d1263109e163 (diff) | |
download | aspectj-f00f547d7b37647880e7f8fc030f9f96dbad9848.tar.gz aspectj-f00f547d7b37647880e7f8fc030f9f96dbad9848.zip |
Clean up Maven dependencies using 'dependency:analyze' goal
Notably, this change involves a partial revert of @4a5660b3, because we
are not using JUnit Jupiter yet but still JUnit 4 tests. See discussion
under commit at https://github.com/eclipse/org.aspectj/commit/4a5660b3.
Many other warnings - concerning both used undeclared and unused
declared dependencies - were eliminated by adding or removing the
corresponding dependencies from the POMs. Furthermore, I tried to make
sure that some clearly test-scoped dependencies are now actually
declared as such, so as to avoid unwanted transitivity bleeding into
compile scope and maybe unwanted classes ending up in uber JARs via
Maven Shade or Maven Assembly.
TODO: I am not so sure why modules other than 'run-all-unit-tests' would
depend on test JARs. I hope I broke nothing essential there. As of
today, the other modules where I found '<type>test-jar</type>'
dependencies are:
- ajde
- testing
- testing-drivers
- tests
- weaver
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
-rw-r--r-- | ajbrowser/pom.xml | 22 | ||||
-rw-r--r-- | ajde.core/pom.xml | 10 | ||||
-rw-r--r-- | ajde/pom.xml | 10 | ||||
-rw-r--r-- | ajdoc/pom.xml | 34 | ||||
-rw-r--r-- | ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java | 22 | ||||
-rw-r--r-- | build/pom.xml | 6 | ||||
-rw-r--r-- | loadtime/pom.xml | 52 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/pom.xml | 11 | ||||
-rw-r--r-- | org.aspectj.lib/pom.xml | 1 | ||||
-rw-r--r-- | org.aspectj.matcher/pom.xml | 1 | ||||
-rw-r--r-- | pom.xml | 45 | ||||
-rw-r--r-- | run-all-junit-tests/pom.xml | 130 | ||||
-rw-r--r-- | runtime/pom.xml | 8 | ||||
-rw-r--r-- | taskdefs/pom.xml | 12 | ||||
-rw-r--r-- | testing-drivers/pom.xml | 25 | ||||
-rw-r--r-- | testing-util/pom.xml | 3 | ||||
-rw-r--r-- | testing/pom.xml | 39 | ||||
-rw-r--r-- | tests/pom.xml | 37 | ||||
-rw-r--r-- | weaver/pom.xml | 1 |
19 files changed, 117 insertions, 352 deletions
diff --git a/ajbrowser/pom.xml b/ajbrowser/pom.xml index 009bc2f77..78041e7c3 100644 --- a/ajbrowser/pom.xml +++ b/ajbrowser/pom.xml @@ -36,35 +36,13 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>taskdefs</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>ajdoc</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>loadtime</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>ajde.core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>weaver</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>org.aspectj.ajdt.core</artifactId> <version>${project.version}</version> - <type>test-jar</type> - <scope>test</scope> </dependency> </dependencies> </project> diff --git a/ajde.core/pom.xml b/ajde.core/pom.xml index 8ed061954..22ec19759 100644 --- a/ajde.core/pom.xml +++ b/ajde.core/pom.xml @@ -38,5 +38,15 @@ <groupId>org.aspectj</groupId> <artifactId>org.eclipse.jdt.core</artifactId> </dependency> + <dependency> + <groupId>org.aspectj</groupId> + <artifactId>asm-renamed</artifactId> + </dependency> + <dependency> + <groupId>org.aspectj</groupId> + <artifactId>testing-util</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> </dependencies> </project> diff --git a/ajde/pom.xml b/ajde/pom.xml index 42c9e10c4..2c3ad63be 100644 --- a/ajde/pom.xml +++ b/ajde/pom.xml @@ -36,6 +36,10 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> + <artifactId>asm-renamed</artifactId> + </dependency> + <dependency> + <groupId>org.aspectj</groupId> <artifactId>org.aspectj.ajdt.core</artifactId> <version>${project.version}</version> <type>test-jar</type> @@ -50,5 +54,11 @@ <artifactId>ajde.core</artifactId> <version>${project.version}</version> </dependency> + <dependency> + <groupId>org.aspectj</groupId> + <artifactId>testing-util</artifactId> + <version>${project.version}</version> + <scope>test</scope> + </dependency> </dependencies> </project> diff --git a/ajdoc/pom.xml b/ajdoc/pom.xml index f7ae7ab00..dee6a59ca 100644 --- a/ajdoc/pom.xml +++ b/ajdoc/pom.xml @@ -35,40 +35,8 @@ <version>${project.version}</version> </dependency> <dependency> - <!-- enables easy dependency on tools.jar --> - <groupId>com.github.olivergondza</groupId> - <artifactId>maven-jdk-tools-wrapper</artifactId> - <version>0.1</version> - </dependency> - - <!-- Dependencies needed for running tests in this module independently of complete reactor build --> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>org.eclipse.jdt.core</artifactId> - </dependency> - <dependency> <groupId>org.aspectj</groupId> - <artifactId>org.aspectj.matcher</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>weaver</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>bcel-builder</artifactId> - <version>${project.version}</version> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>runtime</artifactId> - <version>${project.version}</version> - <scope>test</scope> + <artifactId>asm-renamed</artifactId> </dependency> <dependency> <groupId>org.aspectj</groupId> diff --git a/ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java b/ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java index f27d3b166..5af5610a9 100644 --- a/ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java +++ b/ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java @@ -1,25 +1,25 @@ /* ******************************************************************* * Copyright (c) 2003 Contributors. - * All rights reserved. - * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Mik Kersten initial implementation + * All rights reserved. + * This program and the accompanying materials are made available + * under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Mik Kersten initial implementation * ******************************************************************/ package org.aspectj.tools.ajdoc; import org.aspectj.asm.AsmManager; import org.aspectj.bridge.IMessage; - +import org.aspectj.tools.ajc.Main; /** * Wrapper for ajdoc's use of the AspectJ compiler. - * + * * @author Mik Kersten */ -public class CompilerWrapper extends org.aspectj.tools.ajc.Main { +public class CompilerWrapper extends Main { private static CompilerWrapper INSTANCE = null; diff --git a/build/pom.xml b/build/pom.xml index 6fa02a049..0592f41c1 100644 --- a/build/pom.xml +++ b/build/pom.xml @@ -15,12 +15,6 @@ <dependencies> <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-util</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency --> <groupId>ant</groupId> <artifactId>ant</artifactId> diff --git a/loadtime/pom.xml b/loadtime/pom.xml index 7c03455e5..f7aae7160 100644 --- a/loadtime/pom.xml +++ b/loadtime/pom.xml @@ -16,11 +16,6 @@ <dependencies> <dependency> <groupId>org.aspectj</groupId> - <artifactId>asm</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>bridge</artifactId> <version>${project.version}</version> </dependency> @@ -46,56 +41,19 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> + <artifactId>asm-renamed</artifactId> + </dependency> + <dependency> + <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>bcel-builder</artifactId> <version>${project.version}</version> </dependency> - <dependency> - <!-- Identical to lib/ant/lib/xml-apis.jar, a former system-scoped dependency --> - <groupId>xerces</groupId> - <artifactId>xmlParserAPIs</artifactId> - <version>${lib.ant.xerces.version}</version> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency --> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>${lib.ant.xerces.version}</version> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency --> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>${lib.ant.version}</version> - </dependency> </dependencies> -<!-- - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-javadoc-plugin</artifactId> - <version>3.0.1</version> - <configuration> - </configuration> - <executions> - <execution> - <id>javadoc</id> - <phase>package</phase> - <goals> - <goal>javadoc</goal> - </goals> - <configuration> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> ---> </project> diff --git a/org.aspectj.ajdt.core/pom.xml b/org.aspectj.ajdt.core/pom.xml index 165d81505..5e9664987 100644 --- a/org.aspectj.ajdt.core/pom.xml +++ b/org.aspectj.ajdt.core/pom.xml @@ -48,11 +48,7 @@ <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-client</artifactId> - <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> @@ -60,13 +56,12 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>loadtime</artifactId> + <artifactId>org.aspectj.matcher</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>org.aspectj.matcher</artifactId> - <version>${project.version}</version> + <artifactId>asm-renamed</artifactId> </dependency> </dependencies> diff --git a/org.aspectj.lib/pom.xml b/org.aspectj.lib/pom.xml index 2589f1e65..0fa2d2e2c 100644 --- a/org.aspectj.lib/pom.xml +++ b/org.aspectj.lib/pom.xml @@ -18,6 +18,7 @@ <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> + <scope>test</scope> </dependency> </dependencies> diff --git a/org.aspectj.matcher/pom.xml b/org.aspectj.matcher/pom.xml index 650dfa3ed..89deb5abf 100644 --- a/org.aspectj.matcher/pom.xml +++ b/org.aspectj.matcher/pom.xml @@ -28,6 +28,7 @@ <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>commons-logging</groupId> @@ -206,6 +206,11 @@ <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>3.1.2</version> + </plugin> </plugins> </pluginManagement> @@ -247,6 +252,22 @@ <artifactId>maven-help-plugin</artifactId> </plugin> + <!-- + This plugin is nice to have in the POM, because then it is easy to double-click a goal such as 'analyze' or + 'tree' from a modern IDE in order to inspect dependency management in the project. + --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>3.1.2</version> + <configuration> + <ignoredUnusedDeclaredDependencies> + <!-- Declared in parent POM for convenience, but not used in every module --> + <ignoredUnusedDeclaredDependency>junit:junit:jar</ignoredUnusedDeclaredDependency> + </ignoredUnusedDeclaredDependencies> + </configuration> + </plugin> + <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> @@ -303,6 +324,12 @@ <scope>import</scope> </dependency> <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.13.2</version> + <scope>test</scope> + </dependency> + <dependency> <groupId>org.aspectj</groupId> <artifactId>org.eclipse.jdt.core</artifactId> <version>${jdt.core.version}</version> @@ -327,19 +354,13 @@ </dependencyManagement> <dependencies> + <!-- + Actually, it would be cleaner to only define JUnit only it modules which actually use it. But since this comprises + the majority, we can afford to be a little bit unclean here with regard to dependency management. + --> <dependency> - <groupId>org.junit.jupiter</groupId> - <artifactId>junit-jupiter-api</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.junit.jupiter</groupId> - <artifactId>junit-jupiter-engine</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.junit.vintage</groupId> - <artifactId>junit-vintage-engine</artifactId> + <groupId>junit</groupId> + <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> diff --git a/run-all-junit-tests/pom.xml b/run-all-junit-tests/pom.xml index 1b159f47e..7d7c2959f 100644 --- a/run-all-junit-tests/pom.xml +++ b/run-all-junit-tests/pom.xml @@ -16,225 +16,133 @@ <dependencies> <dependency> <groupId>org.aspectj</groupId> - <artifactId>bcel-builder</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>util</artifactId> - <version>${project.version}</version> + <artifactId>asm-renamed</artifactId> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>util</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>ajde</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>ajde.core</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>asm</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>bridge</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>loadtime</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>runtime</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>ajdoc</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>weaver</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>taskdefs</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>testing-client</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>testing-drivers</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>org.aspectj.matcher</artifactId> <version>${project.version}</version> <type>test-jar</type> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>build</artifactId> - <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>build</artifactId> <version>${project.version}</version> <type>test-jar</type> - </dependency> - - - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>bridge</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>asm</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>runtime</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>taskdefs</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-drivers</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-util</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>weaver</artifactId> - <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>tests</artifactId> <version>${project.version}</version> <type>test-jar</type> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>org.aspectj.ajdt.core</artifactId> - <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>org.aspectj.ajdt.core</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>org.eclipse.jdt.core</artifactId> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>ajdoc</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>loadtime</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>ajde.core</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>org.aspectj.matcher</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>ajde</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>ajbrowser</artifactId> - <version>${project.version}</version> - </dependency> - - <dependency> - <groupId>org.aspectj</groupId> <artifactId>testing</artifactId> <version>${project.version}</version> <type>test-jar</type> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency --> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>${lib.ant.version}</version> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency --> - <groupId>ant</groupId> - <artifactId>ant-launcher</artifactId> - <version>${lib.ant.version}</version> + <scope>test</scope> </dependency> </dependencies> diff --git a/runtime/pom.xml b/runtime/pom.xml index 554f74a62..4f3230c2f 100644 --- a/runtime/pom.xml +++ b/runtime/pom.xml @@ -13,14 +13,6 @@ <packaging>jar</packaging> <name>runtime</name> - <dependencies> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-util</artifactId> - <version>${project.version}</version> - </dependency> - </dependencies> - <build> <plugins> <plugin> diff --git a/taskdefs/pom.xml b/taskdefs/pom.xml index 74abf20a6..f5f35b2d9 100644 --- a/taskdefs/pom.xml +++ b/taskdefs/pom.xml @@ -35,16 +35,8 @@ <version>${project.version}</version> </dependency> <dependency> - <!-- Identical to lib/ant/lib/xml-apis.jar, a former system-scoped dependency --> - <groupId>xerces</groupId> - <artifactId>xmlParserAPIs</artifactId> - <version>${lib.ant.xerces.version}</version> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency --> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>${lib.ant.xerces.version}</version> + <groupId>org.aspectj</groupId> + <artifactId>asm-renamed</artifactId> </dependency> <dependency> <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency --> diff --git a/testing-drivers/pom.xml b/testing-drivers/pom.xml index 5ab5f35ec..0132a4441 100644 --- a/testing-drivers/pom.xml +++ b/testing-drivers/pom.xml @@ -21,27 +21,13 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>weaver</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>testing</artifactId> <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-util</artifactId> - <version>${project.version}</version> + <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>testing-client</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>util</artifactId> <version>${project.version}</version> </dependency> @@ -52,14 +38,7 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>asm</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing</artifactId> - <version>${project.version}</version> - <type>test-jar</type> + <artifactId>asm-renamed</artifactId> </dependency> </dependencies> diff --git a/testing-util/pom.xml b/testing-util/pom.xml index 1b8da6666..34e821665 100644 --- a/testing-util/pom.xml +++ b/testing-util/pom.xml @@ -34,7 +34,8 @@ <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> - <version>4.13</version> + <!-- Yes, not 'test' here --> + <scope>compile</scope> </dependency> <dependency> <!-- Identical to lib/jdiff/jdiff.jar, a former system-scoped dependency. Now to be found on GitHub Packages. --> diff --git a/testing/pom.xml b/testing/pom.xml index 0f1089e1f..89877c9e9 100644 --- a/testing/pom.xml +++ b/testing/pom.xml @@ -26,16 +26,6 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>ajde</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>runtime</artifactId> - <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>asm</artifactId> <version>${project.version}</version> </dependency> @@ -56,6 +46,10 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> + <artifactId>asm-renamed</artifactId> + </dependency> + <dependency> + <groupId>org.aspectj</groupId> <artifactId>testing-client</artifactId> <version>${project.version}</version> </dependency> @@ -91,12 +85,6 @@ <version>${lib.ant.version}</version> </dependency> <dependency> - <!-- Identical to lib/regexp/jakarta-regexp-1.2.jar, a former system-scoped dependency --> - <groupId>regexp</groupId> - <artifactId>regexp</artifactId> - <version>${lib.regexp.version}</version> - </dependency> - <dependency> <groupId>org.aspectj</groupId> <artifactId>ajde.core</artifactId> <version>${project.version}</version> @@ -115,24 +103,19 @@ <version>${lib.ant.xerces.version}</version> </dependency> <dependency> - <!-- Identical to lib/ant/lib/xercesImpl.jar, a former system-scoped dependency --> - <groupId>xerces</groupId> - <artifactId>xercesImpl</artifactId> - <version>${lib.ant.xerces.version}</version> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <version>4.13</version> - </dependency> - <dependency> <groupId>commons-digester</groupId> <artifactId>commons-digester</artifactId> <version>${lib.commons.digester.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>org.eclipse.jdt.core</artifactId> + <artifactId>ajdoc</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>${lib.commons.logging.version}</version> </dependency> </dependencies> diff --git a/tests/pom.xml b/tests/pom.xml index cc0e602a6..a8d5b27aa 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -36,8 +36,7 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>runtime</artifactId> - <version>${project.version}</version> + <artifactId>asm-renamed</artifactId> </dependency> <dependency> <groupId>org.aspectj</groupId> @@ -51,34 +50,22 @@ </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>asm-renamed</artifactId> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>org.aspectj.ajdt.core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.aspectj</groupId> - <artifactId>org.eclipse.jdt.core</artifactId> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> <artifactId>org.aspectj.ajdt.core</artifactId> <version>${project.version}</version> <type>test-jar</type> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency --> - <groupId>ant</groupId> - <artifactId>ant</artifactId> - <version>${lib.ant.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>ajde.core</artifactId> <version>${project.version}</version> <type>test-jar</type> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> @@ -89,28 +76,14 @@ <groupId>org.aspectj</groupId> <artifactId>testing</artifactId> <version>${project.version}</version> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing</artifactId> - <version>${project.version}</version> <type>test-jar</type> - </dependency> - <dependency> - <groupId>org.aspectj</groupId> - <artifactId>testing-drivers</artifactId> - <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> - </dependency> - <dependency> - <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency --> - <groupId>ant</groupId> - <artifactId>ant-launcher</artifactId> - <version>${lib.ant.version}</version> + <scope>test</scope> </dependency> </dependencies> diff --git a/weaver/pom.xml b/weaver/pom.xml index 9eaf8f3d1..16f2ccfd9 100644 --- a/weaver/pom.xml +++ b/weaver/pom.xml @@ -28,6 +28,7 @@ <groupId>org.aspectj</groupId> <artifactId>testing-util</artifactId> <version>${project.version}</version> + <scope>test</scope> </dependency> <dependency> <groupId>org.aspectj</groupId> |