]> source.dussan.org Git - aspectj.git/commitdiff
Fix undetected runtime dependency usage problem from previous commit
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Apr 2021 06:52:28 +0000 (13:52 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 12 Apr 2021 06:52:28 +0000 (13:52 +0700)
In module 'tests', our tests need Ant launcher. Hence, dependency
ant:ant-launcher was re-added to the POM (with test scope this time)
and Maven Dependency plugin configured to regard it as a used
dependency and not falsely report it as unused.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tests/pom.xml

index a8d5b27aab9b54996e0a89b0f1523a52ae8d38e5..d276169f76027064413a32efaad2c1aeb0079f51 100644 (file)
                        <version>${project.version}</version>
                        <scope>test</scope>
                </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>
 
        <build>
                                                </includes>
                                        </configuration>
                                </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <configuration>
+                                       <usedDependencies>
+                                               <!-- The tests need this during runtime, even though no direct usage is in our classes -->
+                                               <usedDependency>ant:ant-launcher</usedDependency>
+                                       </usedDependencies>
+                               </configuration>
+                       </plugin>
                        </plugins>
        </build>