From 370c0b0b6d30adea1d0d49e156f0828f640cee2c Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 2 Jul 2020 15:12:31 +0200 Subject: [PATCH] Remove unused dependency, explicitly declare used dependencies --- pmd-apex-jorje/pom.xml | 1 - pmd-apex/pom.xml | 240 +++++++++--------- .../pmd/lang/apex/metrics/ApexMetrics.java | 3 - pmd-cpp/pom.xml | 4 - pmd-cs/pom.xml | 4 +- pmd-dart/pom.xml | 8 +- pmd-dist/pom.xml | 5 - pmd-doc/pom.xml | 5 - pmd-fortran/pom.xml | 4 - pmd-go/pom.xml | 8 +- pmd-groovy/pom.xml | 13 +- pmd-java/pom.xml | 95 ++++--- pmd-java8/pom.xml | 5 - pmd-javascript/pom.xml | 4 - pmd-jsp/pom.xml | 14 - pmd-kotlin/pom.xml | 8 +- pmd-lang-test/pom.xml | 11 - pmd-lua/pom.xml | 8 +- pmd-matlab/pom.xml | 4 - pmd-modelica/pom.xml | 47 ++++ pmd-objectivec/pom.xml | 4 - pmd-perl/pom.xml | 15 ++ pmd-php/pom.xml | 10 + pmd-plsql/pom.xml | 10 - pmd-python/pom.xml | 4 - pmd-ruby/pom.xml | 4 - pmd-scala-modules/pmd-scala-common/pom.xml | 49 ++++ pmd-scala-modules/pmd-scala_2.12/pom.xml | 12 +- pmd-scala-modules/pmd-scala_2.13/pom.xml | 12 +- pmd-swift/pom.xml | 8 +- pmd-visualforce/pom.xml | 14 - pmd-vm/pom.xml | 10 - pmd-xml/pom.xml | 15 +- pom.xml | 45 +++- 34 files changed, 390 insertions(+), 313 deletions(-) diff --git a/pmd-apex-jorje/pom.xml b/pmd-apex-jorje/pom.xml index de533a5c87..f5b32e0bf3 100644 --- a/pmd-apex-jorje/pom.xml +++ b/pmd-apex-jorje/pom.xml @@ -89,7 +89,6 @@ org.antlr antlr-runtime - 3.5.2 org.antlr diff --git a/pmd-apex/pom.xml b/pmd-apex/pom.xml index 08b66db721..67ac49220f 100644 --- a/pmd-apex/pom.xml +++ b/pmd-apex/pom.xml @@ -1,125 +1,129 @@ - - 4.0.0 - pmd-apex - PMD Apex + + 4.0.0 + pmd-apex + PMD Apex - - net.sourceforge.pmd - pmd - 6.26.0-SNAPSHOT - ../ - + + net.sourceforge.pmd + pmd + 6.26.0-SNAPSHOT + ../ + - - 8 - + + 8 + - - - - ${basedir}/src/main/resources - true - - - - - maven-resources-plugin - - false - - ${*} - - - - - - - - net.sourceforge.pmd - pmd-core - - - - ${project.groupId} - pmd-apex-jorje - ${project.version} - lib - - - - ${project.groupId} - pmd-apex-jorje - ${project.version} - pom - - - - commons-io - commons-io - - - - - net.sourceforge.saxon - saxon - - - - org.hamcrest - hamcrest - test - - - junit - junit - test - - - com.github.stefanbirkner - system-rules - test - - - org.junit.vintage - junit-vintage-engine - test - - - net.sourceforge.pmd - pmd-test - test - - - net.sourceforge.pmd - pmd-lang-test - test - - - - - - designer - + + + + ${basedir}/src/main/resources + true + + - - org.codehaus.mojo - exec-maven-plugin - 1.4.0 - - net.sourceforge.pmd.util.designer.Designer - true - - - - net.sourceforge.pmd - pmd-java - ${project.version} - - - + + maven-resources-plugin + + false + + ${*} + + + - - - + + + + net.sourceforge.pmd + pmd-core + + + org.antlr + antlr-runtime + + + + ${project.groupId} + pmd-apex-jorje + ${project.version} + lib + + + + ${project.groupId} + pmd-apex-jorje + ${project.version} + pom + + + + commons-io + commons-io + + + org.apache.commons + commons-lang3 + + + + + org.hamcrest + hamcrest + test + + + junit + junit + test + + + com.github.stefanbirkner + system-rules + test + + + org.junit.vintage + junit-vintage-engine + test + + + net.sourceforge.pmd + pmd-test + test + + + net.sourceforge.pmd + pmd-lang-test + test + + + + + + designer + + + + org.codehaus.mojo + exec-maven-plugin + 1.4.0 + + net.sourceforge.pmd.util.designer.Designer + true + + + + net.sourceforge.pmd + pmd-java + ${project.version} + + + + + + + diff --git a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.java b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.java index d8dd2ec984..9c22ae27e5 100644 --- a/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.java +++ b/pmd-apex/src/main/java/net/sourceforge/pmd/lang/apex/metrics/ApexMetrics.java @@ -7,8 +7,6 @@ package net.sourceforge.pmd.lang.apex.metrics; import java.util.ArrayList; import java.util.List; -import org.checkerframework.checker.nullness.qual.NonNull; - import net.sourceforge.pmd.lang.apex.ast.ASTMethod; import net.sourceforge.pmd.lang.apex.ast.ASTUserClass; import net.sourceforge.pmd.lang.apex.ast.ASTUserClassOrInterface; @@ -136,7 +134,6 @@ public final class ApexMetrics { } - @NonNull public static List findOps(ASTUserClassOrInterface node) { List candidates = node.findChildrenOfType(ASTMethod.class); List result = new ArrayList<>(candidates); diff --git a/pmd-cpp/pom.xml b/pmd-cpp/pom.xml index 51d5111c0b..b2dd19ece7 100644 --- a/pmd-cpp/pom.xml +++ b/pmd-cpp/pom.xml @@ -70,10 +70,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-cs/pom.xml b/pmd-cs/pom.xml index 7d6939ed6e..38a5a822be 100644 --- a/pmd-cs/pom.xml +++ b/pmd-cs/pom.xml @@ -36,8 +36,8 @@ pmd-core - commons-io - commons-io + org.antlr + antlr4-runtime diff --git a/pmd-dart/pom.xml b/pmd-dart/pom.xml index e2fbafc4b8..f489c42d7c 100644 --- a/pmd-dart/pom.xml +++ b/pmd-dart/pom.xml @@ -31,17 +31,13 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core - commons-io - commons-io + org.antlr + antlr4-runtime diff --git a/pmd-dist/pom.xml b/pmd-dist/pom.xml index 96fca07038..59c3076e03 100644 --- a/pmd-dist/pom.xml +++ b/pmd-dist/pom.xml @@ -229,11 +229,6 @@ commons-lang3 - - org.hamcrest - hamcrest - test - junit junit diff --git a/pmd-doc/pom.xml b/pmd-doc/pom.xml index 22f43c9c0b..a2811d07ce 100644 --- a/pmd-doc/pom.xml +++ b/pmd-doc/pom.xml @@ -103,11 +103,6 @@ 1.19 - - org.hamcrest - hamcrest - test - junit junit diff --git a/pmd-fortran/pom.xml b/pmd-fortran/pom.xml index 9e451b1c53..f5926fc80b 100644 --- a/pmd-fortran/pom.xml +++ b/pmd-fortran/pom.xml @@ -29,10 +29,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-go/pom.xml b/pmd-go/pom.xml index 773a98e3b3..2c65c6a915 100644 --- a/pmd-go/pom.xml +++ b/pmd-go/pom.xml @@ -29,14 +29,14 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core + + org.antlr + antlr4-runtime + junit diff --git a/pmd-groovy/pom.xml b/pmd-groovy/pom.xml index 655f884a74..e3afe3ef74 100644 --- a/pmd-groovy/pom.xml +++ b/pmd-groovy/pom.xml @@ -26,19 +26,14 @@ - - org.codehaus.groovy - groovy - - - commons-io - commons-io - - net.sourceforge.pmd pmd-core + + org.codehaus.groovy + groovy + junit diff --git a/pmd-java/pom.xml b/pmd-java/pom.xml index 7c96252e5b..41a7476b9a 100644 --- a/pmd-java/pom.xml +++ b/pmd-java/pom.xml @@ -107,12 +107,6 @@ - - net.java.dev.javacc - javacc - provided - - net.sourceforge.pmd pmd-core @@ -134,13 +128,6 @@ commons-lang3 - - net.sourceforge.saxon - saxon - dom - runtime - - net.sourceforge.pmd @@ -152,23 +139,6 @@ pmd-test test - - org.slf4j - slf4j-api - test - - - org.apache.logging.log4j - log4j-api - 2.13.3 - test - - - org.apache.logging.log4j - log4j-core - 2.13.3 - test - org.hamcrest hamcrest @@ -195,6 +165,71 @@ ant-testutil test + + + com.github.oowekyala.treeutils + tree-matchers + test + + + com.github.oowekyala.treeutils + tree-printers + test + + + io.kotlintest + kotlintest-runner-junit5 + test + + + io.kotlintest + kotlintest-assertions + test + + + io.kotlintest + kotlintest-core + test + + + com.google.guava + guava + test + + + org.jetbrains.kotlin + kotlin-stdlib + test + + + org.jetbrains.kotlin + kotlin-test + test + + + org.jetbrains + annotations + test + + + + + org.slf4j + slf4j-api + test + + + org.apache.logging.log4j + log4j-api + 2.13.3 + test + + + org.apache.logging.log4j + log4j-core + 2.13.3 + test + org.assertj assertj-core diff --git a/pmd-java8/pom.xml b/pmd-java8/pom.xml index 6507278282..9e4bb0cf44 100644 --- a/pmd-java8/pom.xml +++ b/pmd-java8/pom.xml @@ -56,11 +56,6 @@ pmd-core - - org.hamcrest - hamcrest - test - junit junit diff --git a/pmd-javascript/pom.xml b/pmd-javascript/pom.xml index a97cff755b..706f3d09cc 100644 --- a/pmd-javascript/pom.xml +++ b/pmd-javascript/pom.xml @@ -83,10 +83,6 @@ commons-io commons-io - - net.sourceforge.saxon - saxon - junit diff --git a/pmd-jsp/pom.xml b/pmd-jsp/pom.xml index 72fd206133..554324da5d 100644 --- a/pmd-jsp/pom.xml +++ b/pmd-jsp/pom.xml @@ -72,24 +72,10 @@ - - net.java.dev.javacc - javacc - provided - - net.sourceforge.pmd pmd-core - - commons-io - commons-io - - - net.sourceforge.saxon - saxon - junit diff --git a/pmd-kotlin/pom.xml b/pmd-kotlin/pom.xml index bce62d34f6..09c881677c 100644 --- a/pmd-kotlin/pom.xml +++ b/pmd-kotlin/pom.xml @@ -31,17 +31,13 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core - commons-io - commons-io + org.antlr + antlr4-runtime diff --git a/pmd-lang-test/pom.xml b/pmd-lang-test/pom.xml index ffc92adffc..077910a59e 100644 --- a/pmd-lang-test/pom.xml +++ b/pmd-lang-test/pom.xml @@ -118,7 +118,6 @@ org.jetbrains annotations - 13.0 compile @@ -166,22 +165,12 @@ com.github.oowekyala.treeutils tree-matchers - 2.1.0 compile com.github.oowekyala.treeutils tree-printers - 2.1.0 compile - - - - net.sourceforge.pmd - pmd-java - 6.25.0 - test - diff --git a/pmd-lua/pom.xml b/pmd-lua/pom.xml index a519014e08..2bc6f0754f 100644 --- a/pmd-lua/pom.xml +++ b/pmd-lua/pom.xml @@ -31,17 +31,13 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core - commons-io - commons-io + org.antlr + antlr4-runtime diff --git a/pmd-matlab/pom.xml b/pmd-matlab/pom.xml index cd3585c4bb..0b71aad03e 100644 --- a/pmd-matlab/pom.xml +++ b/pmd-matlab/pom.xml @@ -70,10 +70,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-modelica/pom.xml b/pmd-modelica/pom.xml index ddb1f877e6..9b02d62b80 100644 --- a/pmd-modelica/pom.xml +++ b/pmd-modelica/pom.xml @@ -78,6 +78,53 @@ pmd-core + + com.github.oowekyala.treeutils + tree-matchers + test + + + com.github.oowekyala.treeutils + tree-printers + test + + + org.jetbrains.kotlin + kotlin-stdlib + test + + + org.jetbrains.kotlin + kotlin-test + test + + + org.jetbrains + annotations + test + + + io.kotlintest + kotlintest-runner-junit5 + test + + + io.kotlintest + kotlintest-assertions + test + + + io.kotlintest + kotlintest-core + test + + + + + junit + junit + test + org.junit.vintage junit-vintage-engine diff --git a/pmd-objectivec/pom.xml b/pmd-objectivec/pom.xml index 2bbbb7cbf5..dafc12b184 100644 --- a/pmd-objectivec/pom.xml +++ b/pmd-objectivec/pom.xml @@ -70,10 +70,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-perl/pom.xml b/pmd-perl/pom.xml index 2eb7fd9c34..55fb10ac2b 100644 --- a/pmd-perl/pom.xml +++ b/pmd-perl/pom.xml @@ -30,10 +30,25 @@ pmd-core + + junit + junit + test + + + org.junit.vintage + junit-vintage-engine + test + net.sourceforge.pmd pmd-test test + + net.sourceforge.pmd + pmd-lang-test + test + diff --git a/pmd-php/pom.xml b/pmd-php/pom.xml index a985180d05..3cf2f6bce6 100644 --- a/pmd-php/pom.xml +++ b/pmd-php/pom.xml @@ -35,10 +35,20 @@ junit test + + org.junit.vintage + junit-vintage-engine + test + net.sourceforge.pmd pmd-test test + + net.sourceforge.pmd + pmd-lang-test + test + diff --git a/pmd-plsql/pom.xml b/pmd-plsql/pom.xml index 4c1883ce71..74f54637bb 100644 --- a/pmd-plsql/pom.xml +++ b/pmd-plsql/pom.xml @@ -80,12 +80,6 @@ - - net.java.dev.javacc - javacc - provided - - net.sourceforge.pmd pmd-core @@ -94,10 +88,6 @@ commons-io commons-io - - net.sourceforge.saxon - saxon - junit diff --git a/pmd-python/pom.xml b/pmd-python/pom.xml index 1340131928..42e44fa67e 100644 --- a/pmd-python/pom.xml +++ b/pmd-python/pom.xml @@ -70,10 +70,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-ruby/pom.xml b/pmd-ruby/pom.xml index fc6778050e..7c70becc38 100644 --- a/pmd-ruby/pom.xml +++ b/pmd-ruby/pom.xml @@ -16,10 +16,6 @@ net.sourceforge.pmd pmd-core - - commons-io - commons-io - junit diff --git a/pmd-scala-modules/pmd-scala-common/pom.xml b/pmd-scala-modules/pmd-scala-common/pom.xml index de9580fe17..1bfca64ac2 100644 --- a/pmd-scala-modules/pmd-scala-common/pom.xml +++ b/pmd-scala-modules/pmd-scala-common/pom.xml @@ -103,6 +103,55 @@ net.sourceforge.pmd pmd-core + + commons-io + commons-io + + + org.apache.commons + commons-lang3 + + + + com.github.oowekyala.treeutils + tree-matchers + test + + + com.github.oowekyala.treeutils + tree-printers + test + + + io.kotlintest + kotlintest-runner-junit5 + test + + + io.kotlintest + kotlintest-assertions + test + + + io.kotlintest + kotlintest-core + test + + + org.jetbrains.kotlin + kotlin-stdlib + test + + + org.jetbrains.kotlin + kotlin-test + test + + + org.jetbrains + annotations + test + junit diff --git a/pmd-scala-modules/pmd-scala_2.12/pom.xml b/pmd-scala-modules/pmd-scala_2.12/pom.xml index 1a912de417..ad244664fa 100644 --- a/pmd-scala-modules/pmd-scala_2.12/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.12/pom.xml @@ -25,9 +25,19 @@ + + org.scala-lang + scala-library + ${scalaVersion} + org.scalameta - scalameta_${scalaVersion} + parsers_${scalaVersion} + ${scalameta.version} + + + org.scalameta + trees_${scalaVersion} ${scalameta.version} diff --git a/pmd-scala-modules/pmd-scala_2.13/pom.xml b/pmd-scala-modules/pmd-scala_2.13/pom.xml index 7a72d501e5..eea8d7fad3 100644 --- a/pmd-scala-modules/pmd-scala_2.13/pom.xml +++ b/pmd-scala-modules/pmd-scala_2.13/pom.xml @@ -25,9 +25,19 @@ + + org.scala-lang + scala-library + ${scalaVersion} + org.scalameta - scalameta_${scalaVersion} + parsers_${scalaVersion} + ${scalameta.version} + + + org.scalameta + trees_${scalaVersion} ${scalameta.version} diff --git a/pmd-swift/pom.xml b/pmd-swift/pom.xml index 7744be7696..20c1afe4b7 100644 --- a/pmd-swift/pom.xml +++ b/pmd-swift/pom.xml @@ -31,17 +31,13 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core - commons-io - commons-io + org.antlr + antlr4-runtime diff --git a/pmd-visualforce/pom.xml b/pmd-visualforce/pom.xml index 7888583f33..b9687e9df8 100644 --- a/pmd-visualforce/pom.xml +++ b/pmd-visualforce/pom.xml @@ -72,24 +72,10 @@ - - net.java.dev.javacc - javacc - provided - - net.sourceforge.pmd pmd-core - - commons-io - commons-io - - - net.sourceforge.saxon - saxon - junit diff --git a/pmd-vm/pom.xml b/pmd-vm/pom.xml index ed046aaf92..ded0e269b3 100644 --- a/pmd-vm/pom.xml +++ b/pmd-vm/pom.xml @@ -80,12 +80,6 @@ - - net.java.dev.javacc - javacc - provided - - net.sourceforge.pmd pmd-core @@ -94,10 +88,6 @@ org.apache.commons commons-lang3 - - net.sourceforge.saxon - saxon - junit diff --git a/pmd-xml/pom.xml b/pmd-xml/pom.xml index 4876d5561b..bbdf4568fc 100644 --- a/pmd-xml/pom.xml +++ b/pmd-xml/pom.xml @@ -35,30 +35,19 @@ - - org.antlr - antlr4-runtime - net.sourceforge.pmd pmd-core - net.sourceforge.saxon - saxon + org.antlr + antlr4-runtime commons-io commons-io - - net.sourceforge.saxon - saxon - dom - runtime - - junit junit diff --git a/pom.xml b/pom.xml index a9c6d1a661..d96b6fab6b 100644 --- a/pom.xml +++ b/pom.xml @@ -141,7 +141,7 @@ org.apache.maven.plugins maven-dependency-plugin - 3.1.2 + 3.1.3-SNAPSHOT org.apache.maven.plugins @@ -594,6 +594,12 @@ antlr4-runtime ${antlr.version} + + + org.antlr + antlr-runtime + 3.5.2 + org.apache.ant ant @@ -696,6 +702,26 @@ test + + com.github.oowekyala.treeutils + tree-matchers + 2.1.0 + test + + + com.github.oowekyala.treeutils + tree-printers + 2.1.0 + test + + + + com.google.guava + guava + 18.0 + test + + org.hamcrest hamcrest @@ -790,28 +816,24 @@ ${kotlin.version} test - org.jetbrains.kotlin kotlin-stdlib-jdk8 ${kotlin.version} test - org.jetbrains.kotlin kotlin-reflect ${kotlin.version} test - org.jetbrains.kotlin kotlin-test-junit ${kotlin.version} test - org.jetbrains.kotlin kotlin-test @@ -831,6 +853,19 @@ 3.1.8 test + + io.kotlintest + kotlintest-core + 3.1.8 + test + + + + org.jetbrains + annotations + 13.0 + test +