Skip to content

Commit 409c4ac

Browse files
author
Tom Gottfried
committed
Ensure clean and complete dependency declarations
(test workflow with one unused)
1 parent 3498f87 commit 409c4ac

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
2222
restore-keys: ${{ runner.os }}-m2
2323
- name: Build with Maven
24-
run: mvn validate && mvn -B package --file pom.xml
24+
run: mvn -B verify package --file pom.xml

pom.xml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<groupId>org.postgresql</groupId>
9494
<artifactId>postgresql</artifactId>
9595
<version>42.6.0</version>
96-
<scope>runtime</scope>
96+
<!-- <scope>runtime</scope> -->
9797
</dependency>
9898
<!-- Additional dependencies -->
9999
<dependency>
@@ -388,6 +388,25 @@
388388
<includeResources>false</includeResources>
389389
</configuration>
390390
</plugin>
391-
</plugins>
391+
<plugin>
392+
<groupId>org.apache.maven.plugins</groupId>
393+
<artifactId>maven-dependency-plugin</artifactId>
394+
<version>3.9.0</version>
395+
<executions>
396+
<execution>
397+
<id>analyze</id>
398+
<goals>
399+
<goal>analyze-only</goal>
400+
</goals>
401+
<configuration>
402+
<failOnWarning>true</failOnWarning>
403+
</configuration>
404+
</execution>
405+
</executions>
406+
<configuration>
407+
<ignoreUnusedRuntime>true</ignoreUnusedRuntime>
408+
</configuration>
409+
</plugin>
410+
</plugins>
392411
</build>
393412
</project>

0 commit comments

Comments
 (0)