Skip to content

Commit 608163a

Browse files
skip jsr305 from the depsincluded artifact
1 parent 8a89c6e commit 608163a

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

jdbc-perf-logger-driver/pom.xml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>com.github.sylvainlaurent.jdbcperflogger</groupId>
@@ -16,7 +17,7 @@
1617
<groupId>com.google.code.findbugs</groupId>
1718
<artifactId>jsr305</artifactId>
1819
<!-- Annotations are not required on the classpath to use the driver -->
19-
<scope>provided</scope>
20+
<optional>true</optional>
2021
</dependency>
2122
<dependency>
2223
<groupId>com.h2database</groupId>
@@ -55,7 +56,7 @@
5556
<plugin>
5657
<groupId>org.apache.maven.plugins</groupId>
5758
<artifactId>maven-shade-plugin</artifactId>
58-
<version>2.1</version>
59+
<version>2.3</version>
5960
<executions>
6061
<execution>
6162
<phase>package</phase>
@@ -68,15 +69,11 @@
6869
<minimizeJar>true</minimizeJar>
6970
<shadedArtifactAttached>true</shadedArtifactAttached>
7071
<shadedClassifierName>depsincluded</shadedClassifierName>
71-
<filters>
72-
<filter>
73-
<artifact>com.google.code.findbugs:jsr305</artifact>
74-
<excludes>
75-
<!-- weirdly this jar includes java files! -->
76-
<exclude>**/*.java</exclude>
77-
</excludes>
78-
</filter>
79-
</filters>
72+
<artifactSet>
73+
<excludes>
74+
<exclude>com.google.code.findbugs:jsr305</exclude>
75+
</excludes>
76+
</artifactSet>
8077
</configuration>
8178
</plugin>
8279
</plugins>

0 commit comments

Comments
 (0)