{
  "schemaVersion": "ebb.rule.v1",
  "id": "java.maven.org.slf4j.slf4j-log4j12.relocated",
  "ecosystem": "java",
  "purl": "pkg:maven/org.slf4j/slf4j-log4j12",
  "affectedVersions": "vers:maven/>=2.0.13",
  "event": "deprecated",
  "severity": "medium",
  "title": "org.slf4j:slf4j-log4j12 has moved to org.slf4j:slf4j-reload4j",
  "summary": "The POM of org.slf4j:slf4j-log4j12 2.1.0-alpha1 declares a relocation to org.slf4j:slf4j-reload4j.",
  "replacement": "org.slf4j:slf4j-reload4j",
  "sources": [
    {
      "title": "org.slf4j:slf4j-log4j12 2.1.0-alpha1 POM on Maven Central",
      "url": "https://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/2.1.0-alpha1/slf4j-log4j12-2.1.0-alpha1.pom",
      "accessedAt": "2026-10-17"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-17",
    "reviewedAt": "2026-10-17",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Replace org.slf4j:slf4j-log4j12 with org.slf4j:slf4j-reload4j; the relocation in the artifact's POM names the new coordinates, so keep the version unless you intend to upgrade it.",
      "Update every module and dependency-management block that names the old coordinates, and remove exclusions that mention them."
    ],
    "steps": [
      {
        "id": "change-coordinates",
        "title": "Change the dependency coordinates",
        "instructions": "Replace the reported `org.slf4j:slf4j-log4j12` dependency with `org.slf4j:slf4j-reload4j`.",
        "targets": "declaration"
      },
      {
        "id": "align-dependency-surfaces",
        "title": "Align other declarations",
        "instructions": "Update every other pom.xml, Gradle build file, version catalog, and BOM override that names the old coordinates.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "./mvnw -B dependency:tree || ./gradlew dependencies",
        "purpose": "Confirm the old coordinates are gone from the resolved dependency graph."
      },
      {
        "command": "./mvnw -B verify || ./gradlew build",
        "purpose": "Build and test the project with the new coordinates."
      }
    ]
  }
}
