aboutsummaryrefslogtreecommitdiffstats
path: root/ajdoc
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-12 13:39:56 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-04-12 13:51:23 +0700
commitce3b936892d215a25dbf6e04cf2e6eb143ac291e (patch)
tree6937c0a1a5034d8f5688489ab8cb337462b89bad /ajdoc
parentf00f547d7b37647880e7f8fc030f9f96dbad9848 (diff)
downloadaspectj-ce3b936892d215a25dbf6e04cf2e6eb143ac291e.tar.gz
aspectj-ce3b936892d215a25dbf6e04cf2e6eb143ac291e.zip
Fix undetected runtime dependency usage problem from previous commit
In module 'ajdoc', our tests need tools.jar when running on JDK 8 in order to dynamically compile during runtime. Hence, dependency com.github.olivergondza:maven-jdk-tools-wrapper 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>
Diffstat (limited to 'ajdoc')
-rw-r--r--ajdoc/pom.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/ajdoc/pom.xml b/ajdoc/pom.xml
index dee6a59ca..28076699d 100644
--- a/ajdoc/pom.xml
+++ b/ajdoc/pom.xml
@@ -13,6 +13,21 @@
<packaging>jar</packaging>
<name>ajdoc</name>
+ <build>
+ <plugins>
+ <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>com.github.olivergondza:maven-jdk-tools-wrapper</usedDependency>
+ </usedDependencies>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<dependencies>
<dependency>
<groupId>org.aspectj</groupId>
@@ -35,6 +50,12 @@
<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>
+ <dependency>
<groupId>org.aspectj</groupId>
<artifactId>asm-renamed</artifactId>
</dependency>