Skip to content

Commit 1964e9a

Browse files
committed
Avoid transitive dependency of slf4j-simple
1 parent b97a255 commit 1964e9a

File tree

1 file changed

+36
-29
lines changed

1 file changed

+36
-29
lines changed

pom.xml

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

77
<groupId>io.github.sashirestela</groupId>
88
<artifactId>slimvalidator</artifactId>
9-
<version>1.2.2</version>
9+
<version>1.2.3</version>
1010
<packaging>jar</packaging>
1111

1212
<name>slimvalidator</name>
@@ -47,25 +47,29 @@
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 -->
56+
<lombok.version>1.18.36</lombok.version>
5457
<slf4j.version>2.0.16</slf4j.version>
55-
<lombok.version>1.18.34</lombok.version>
56-
<junit.version>5.11.0</junit.version>
58+
<junit.version>[5.11.0,6.0.0)</junit.version>
59+
5760
<!-- Plugins Versions -->
5861
<compiler.version>3.13.0</compiler.version>
5962
<enforcer.version>3.5.0</enforcer.version>
60-
<surefire.version>3.5.0</surefire.version>
61-
<exec.version>3.4.1</exec.version>
63+
<surefire.version>3.5.2</surefire.version>
64+
<exec.version>3.5.0</exec.version>
6265
<jacoco.version>0.8.12</jacoco.version>
63-
<versions.version>2.17.1</versions.version>
66+
<versions.version>2.18.0</versions.version>
6467
<source.version>3.3.1</source.version>
65-
<javadoc.version>3.10.0</javadoc.version>
66-
<gpg.version>3.2.5</gpg.version>
68+
<javadoc.version>3.11.2</javadoc.version>
69+
<gpg.version>3.2.7</gpg.version>
6770
<sonatype.version>1.7.0</sonatype.version>
6871
<spotless.version>2.43.0</spotless.version>
72+
<dependency.version>3.8.1</dependency.version>
6973
</properties>
7074

7175
<profiles>
@@ -139,31 +143,25 @@
139143
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
140144
<autoReleaseAfterClose>true</autoReleaseAfterClose>
141145
</configuration>
142-
</plugin>
146+
</plugin>
143147
</plugins>
144148
</build>
145149
</profile>
146150
</profiles>
147151

148152
<dependencyManagement>
149153
<dependencies>
150-
<dependency>
151-
<groupId>org.slf4j</groupId>
152-
<artifactId>slf4j-api</artifactId>
153-
<version>${slf4j.version}</version>
154-
</dependency>
155-
<dependency>
156-
<groupId>org.slf4j</groupId>
157-
<artifactId>slf4j-simple</artifactId>
158-
<version>${slf4j.version}</version>
159-
<optional>true</optional>
160-
</dependency>
161154
<dependency>
162155
<groupId>org.projectlombok</groupId>
163156
<artifactId>lombok</artifactId>
164157
<version>${lombok.version}</version>
165158
<scope>provided</scope>
166159
</dependency>
160+
<dependency>
161+
<groupId>org.slf4j</groupId>
162+
<artifactId>slf4j-api</artifactId>
163+
<version>${slf4j.version}</version>
164+
</dependency>
167165
<dependency>
168166
<groupId>org.junit.jupiter</groupId>
169167
<artifactId>junit-jupiter</artifactId>
@@ -178,17 +176,13 @@
178176
<groupId>org.projectlombok</groupId>
179177
<artifactId>lombok</artifactId>
180178
</dependency>
181-
<dependency>
182-
<groupId>org.junit.jupiter</groupId>
183-
<artifactId>junit-jupiter</artifactId>
184-
</dependency>
185179
<dependency>
186180
<groupId>org.slf4j</groupId>
187181
<artifactId>slf4j-api</artifactId>
188182
</dependency>
189183
<dependency>
190-
<groupId>org.slf4j</groupId>
191-
<artifactId>slf4j-simple</artifactId>
184+
<groupId>org.junit.jupiter</groupId>
185+
<artifactId>junit-jupiter</artifactId>
192186
</dependency>
193187
</dependencies>
194188

@@ -199,6 +193,19 @@
199193
<artifactId>maven-compiler-plugin</artifactId>
200194
<version>${compiler.version}</version>
201195
</plugin>
196+
<plugin>
197+
<groupId>org.apache.maven.plugins</groupId>
198+
<artifactId>maven-dependency-plugin</artifactId>
199+
<version>${dependency.version}</version>
200+
<executions>
201+
<execution>
202+
<id>analyze</id>
203+
<goals>
204+
<goal>analyze-only</goal>
205+
</goals>
206+
</execution>
207+
</executions>
208+
</plugin>
202209
<plugin>
203210
<groupId>org.apache.maven.plugins</groupId>
204211
<artifactId>maven-enforcer-plugin</artifactId>
@@ -212,9 +219,9 @@
212219
<configuration>
213220
<rules>
214221
<requireMavenVersion>
215-
<version>3.6.3</version>
222+
<version>${maven.version}</version>
216223
</requireMavenVersion>
217-
</rules>
224+
</rules>
218225
</configuration>
219226
</execution>
220227
</executions>

0 commit comments

Comments
 (0)