Skip to content

Commit b1b6caa

Browse files
committed
Avoid transitive dependency of slf4j-simple
1 parent 9ab1f8a commit b1b6caa

File tree

1 file changed

+44
-25
lines changed

1 file changed

+44
-25
lines changed

pom.xml

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.sashirestela</groupId>
88
<artifactId>cleverclient</artifactId>
9-
<version>1.6.2</version>
9+
<version>1.6.3</version>
1010
<packaging>jar</packaging>
1111

1212
<name>cleverclient</name>
@@ -47,15 +47,18 @@
4747
</distributionManagement>
4848

4949
<properties>
50-
<!-- General -->
50+
<!-- Build Properties -->
5151
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
52+
<maven.version>3.6.3</maven.version>
5253
<maven.compiler.release>11</maven.compiler.release>
54+
5355
<!-- Dependencies Versions -->
54-
<slf4j.version>2.0.16</slf4j.version>
5556
<lombok.version>1.18.36</lombok.version>
5657
<jackson.version>2.18.2</jackson.version>
57-
<junit.version>5.11.3</junit.version>
58-
<mockito.version>5.14.2</mockito.version>
58+
<slf4j.version>2.0.16</slf4j.version>
59+
<junit.version>[5.11.0,6.0.0)</junit.version>
60+
<mockito.version>[5.14.0,6.0.0)</mockito.version>
61+
5962
<!-- Plugins Versions -->
6063
<compiler.version>3.13.0</compiler.version>
6164
<enforcer.version>3.5.0</enforcer.version>
@@ -69,6 +72,7 @@
6972
<gpg.version>3.2.7</gpg.version>
7073
<sonatype.version>1.7.0</sonatype.version>
7174
<spotless.version>2.43.0</spotless.version>
75+
<dependency.version>3.8.1</dependency.version>
7276
</properties>
7377

7478
<profiles>
@@ -77,6 +81,12 @@
7781
<activation>
7882
<activeByDefault>true</activeByDefault>
7983
</activation>
84+
<dependencies>
85+
<dependency>
86+
<groupId>org.slf4j</groupId>
87+
<artifactId>slf4j-simple</artifactId>
88+
</dependency>
89+
</dependencies>
8090
<build>
8191
<plugins>
8292
<plugin>
@@ -188,17 +198,6 @@
188198

189199
<dependencyManagement>
190200
<dependencies>
191-
<dependency>
192-
<groupId>org.slf4j</groupId>
193-
<artifactId>slf4j-api</artifactId>
194-
<version>${slf4j.version}</version>
195-
</dependency>
196-
<dependency>
197-
<groupId>org.slf4j</groupId>
198-
<artifactId>slf4j-simple</artifactId>
199-
<version>${slf4j.version}</version>
200-
<optional>true</optional>
201-
</dependency>
202201
<dependency>
203202
<groupId>org.projectlombok</groupId>
204203
<artifactId>lombok</artifactId>
@@ -216,6 +215,17 @@
216215
<version>${jackson.version}</version>
217216
<scope>test</scope>
218217
</dependency>
218+
<dependency>
219+
<groupId>org.slf4j</groupId>
220+
<artifactId>slf4j-api</artifactId>
221+
<version>${slf4j.version}</version>
222+
</dependency>
223+
<dependency>
224+
<groupId>org.slf4j</groupId>
225+
<artifactId>slf4j-simple</artifactId>
226+
<version>${slf4j.version}</version>
227+
<scope>provided</scope>
228+
</dependency>
219229
<dependency>
220230
<groupId>org.junit.jupiter</groupId>
221231
<artifactId>junit-jupiter</artifactId>
@@ -256,6 +266,10 @@
256266
<groupId>com.fasterxml.jackson.datatype</groupId>
257267
<artifactId>jackson-datatype-jsr310</artifactId>
258268
</dependency>
269+
<dependency>
270+
<groupId>org.slf4j</groupId>
271+
<artifactId>slf4j-api</artifactId>
272+
</dependency>
259273
<dependency>
260274
<groupId>org.junit.jupiter</groupId>
261275
<artifactId>junit-jupiter</artifactId>
@@ -268,14 +282,6 @@
268282
<groupId>org.mockito</groupId>
269283
<artifactId>mockito-junit-jupiter</artifactId>
270284
</dependency>
271-
<dependency>
272-
<groupId>org.slf4j</groupId>
273-
<artifactId>slf4j-api</artifactId>
274-
</dependency>
275-
<dependency>
276-
<groupId>org.slf4j</groupId>
277-
<artifactId>slf4j-simple</artifactId>
278-
</dependency>
279285
</dependencies>
280286

281287
<build>
@@ -285,6 +291,19 @@
285291
<artifactId>maven-compiler-plugin</artifactId>
286292
<version>${compiler.version}</version>
287293
</plugin>
294+
<plugin>
295+
<groupId>org.apache.maven.plugins</groupId>
296+
<artifactId>maven-dependency-plugin</artifactId>
297+
<version>${dependency.version}</version>
298+
<executions>
299+
<execution>
300+
<id>analyze</id>
301+
<goals>
302+
<goal>analyze-only</goal>
303+
</goals>
304+
</execution>
305+
</executions>
306+
</plugin>
288307
<plugin>
289308
<groupId>org.apache.maven.plugins</groupId>
290309
<artifactId>maven-enforcer-plugin</artifactId>
@@ -298,7 +317,7 @@
298317
<configuration>
299318
<rules>
300319
<requireMavenVersion>
301-
<version>3.6.3</version>
320+
<version>${maven.version}</version>
302321
</requireMavenVersion>
303322
</rules>
304323
</configuration>

0 commit comments

Comments
 (0)