Skip to content

eonian-technologies/slf4j-bom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SLF4J BOM

Bill of materials for SLF4J.

Usage

In your parent POM or project POM, add the BOM to the dependencyManagement section:

<dependencyManagement>
    <dependencies>
        ...
        <dependency>
            <groupId>com.eoniantech.build</groupId>
            <artifactId>slf4j-bom</artifactId>
            <version>1.8.0-beta2</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency> 
        ...
    </dependencies> 
</dependencyManagement>

Then, in the dependencies section of your project POM, depend on specific slf4j components without the version:

<dependencies>
    ....
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jul-to-slf4j</artifactId>
    </dependency>
    ...
</dependencies>