Skip to content

Commit

Permalink
Declare used dependencies (#81)
Browse files Browse the repository at this point in the history
* Declare used dependencies
* Verify declared dependencies in build
  • Loading branch information
elharo authored Dec 2, 2024
1 parent 463e6d4 commit ffca18f
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
<mavenPluginTestingVersion>4.0.0-beta-2</mavenPluginTestingVersion>
<plexusArchiverVersion>4.10.0</plexusArchiverVersion>
<plexusInterpolationVersion>1.27</plexusInterpolationVersion>
<slf4jVersion>2.0.16</slf4jVersion>
<plexusUtilsVersion>4.0.2</plexusUtilsVersion>
<mockitoVersion>4.6.1</mockitoVersion>

<project.build.outputTimestamp>2024-11-27T16:58:36Z</project.build.outputTimestamp>
</properties>
Expand All @@ -80,11 +81,6 @@
<artifactId>maven-api-model</artifactId>
<version>${mavenVersion}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4jVersion}</version>
</dependency>

<!--
Plexus dependencies
Expand All @@ -99,6 +95,12 @@
<artifactId>plexus-interpolation</artifactId>
<version>${plexusInterpolationVersion}</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>${plexusUtilsVersion}</version>
</dependency>

<!--
Test dependencies
-->
Expand All @@ -115,14 +117,14 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core</artifactId>
<version>${mavenVersion}</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>${versions.junit5}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<artifactId>junit-jupiter-params</artifactId>
<version>${versions.junit5}</version>
<scope>test</scope>
</dependency>
Expand All @@ -133,9 +135,9 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4jVersion}</version>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockitoVersion}</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -150,6 +152,21 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>true</failOnWarning>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit ffca18f

Please sign in to comment.