slf4j icon indicating copy to clipboard operation
slf4j copied to clipboard

[SLF4J-437] Add BOM module for better dependency management

Open Prototik opened this issue 5 years ago • 4 comments

BOM's used to keep in sync versions of dependencies. You can read more info here

Example usage (Maven):

<dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-bom</artifactId>
      <version>${slf4j.version}</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
  </dependencies>
</dependencyManagement>
...
<dependencies>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
  </dependency>
  <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-simple</artifactId>
  </dependency>
  <!-- whatever else -->
</dependencies>

Example usage (Gradle):

dependencies {
  api(platform("org.slf4j:slf4j-bom:$slf4j_version"))

  api("org.slf4j:slf4j-api")
  api("org.slf4j:slf4j-simple")
}

Prototik avatar Jul 30 '19 13:07 Prototik

Any plans for merge?

szymonk92 avatar Apr 22 '20 10:04 szymonk92

Yes curious about merge too

AceHack avatar Jul 03 '20 02:07 AceHack

Bumped into this today, slf4j is the only BOM-less dependency in the project.

mikaelhg avatar Aug 02 '20 11:08 mikaelhg

Would love to see this.

JKomoroski avatar Nov 09 '21 21:11 JKomoroski

Implemented in 6fd9db9b5eef541d9648d486b5db096ed5d00b37

Prototik avatar Nov 24 '23 15:11 Prototik