Skip to content

Commit

Permalink
Avoid transitive dependency of slf4j-simple
Browse files Browse the repository at this point in the history
  • Loading branch information
sashirestela committed Jan 3, 2025
1 parent 9ab1f8a commit b1b6caa
Showing 1 changed file with 44 additions and 25 deletions.
69 changes: 44 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.sashirestela</groupId>
<artifactId>cleverclient</artifactId>
<version>1.6.2</version>
<version>1.6.3</version>
<packaging>jar</packaging>

<name>cleverclient</name>
Expand Down Expand Up @@ -47,15 +47,18 @@
</distributionManagement>

<properties>
<!-- General -->
<!-- Build Properties -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.version>3.6.3</maven.version>
<maven.compiler.release>11</maven.compiler.release>

<!-- Dependencies Versions -->
<slf4j.version>2.0.16</slf4j.version>
<lombok.version>1.18.36</lombok.version>
<jackson.version>2.18.2</jackson.version>
<junit.version>5.11.3</junit.version>
<mockito.version>5.14.2</mockito.version>
<slf4j.version>2.0.16</slf4j.version>
<junit.version>[5.11.0,6.0.0)</junit.version>
<mockito.version>[5.14.0,6.0.0)</mockito.version>

<!-- Plugins Versions -->
<compiler.version>3.13.0</compiler.version>
<enforcer.version>3.5.0</enforcer.version>
Expand All @@ -69,6 +72,7 @@
<gpg.version>3.2.7</gpg.version>
<sonatype.version>1.7.0</sonatype.version>
<spotless.version>2.43.0</spotless.version>
<dependency.version>3.8.1</dependency.version>
</properties>

<profiles>
Expand All @@ -77,6 +81,12 @@
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -188,17 +198,6 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
Expand All @@ -216,6 +215,17 @@
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand Down Expand Up @@ -256,6 +266,10 @@
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand All @@ -268,14 +282,6 @@
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
</dependencies>

<build>
Expand All @@ -285,6 +291,19 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>${dependency.version}</version>
<executions>
<execution>
<id>analyze</id>
<goals>
<goal>analyze-only</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand All @@ -298,7 +317,7 @@
<configuration>
<rules>
<requireMavenVersion>
<version>3.6.3</version>
<version>${maven.version}</version>
</requireMavenVersion>
</rules>
</configuration>
Expand Down

0 comments on commit b1b6caa

Please sign in to comment.