]> source.dussan.org Git - aspectj.git/commit
Clean up Maven dependencies using 'dependency:analyze' goal
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Apr 2021 06:16:29 +0000 (13:16 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Apr 2021 06:16:29 +0000 (13:16 +0700)
commitf00f547d7b37647880e7f8fc030f9f96dbad9848
treeec5812ad1a35103fadd6668527df0926494c8d51
parent9c62d17de4f69c5cd4c4c35a3ab2d1263109e163
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>
19 files changed:
ajbrowser/pom.xml
ajde.core/pom.xml
ajde/pom.xml
ajdoc/pom.xml
ajdoc/src/main/java/org/aspectj/tools/ajdoc/CompilerWrapper.java
build/pom.xml
loadtime/pom.xml
org.aspectj.ajdt.core/pom.xml
org.aspectj.lib/pom.xml
org.aspectj.matcher/pom.xml
pom.xml
run-all-junit-tests/pom.xml
runtime/pom.xml
taskdefs/pom.xml
testing-drivers/pom.xml
testing-util/pom.xml
testing/pom.xml
tests/pom.xml
weaver/pom.xml