Skip to content

Commit

Permalink
Explicitly upgrade slf4j to allow MDG usage (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Jan 1, 2025
1 parent e8774b9 commit 1af968a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ terminalconsoleappender_version=1.2.0
jline_version=3.12.+
nightconfig_version=3.6.4
jetbrains_annotations_version=24.0.1
slf4j_api_version=2.0.7
slf4j_api_version=2.0.9
apache_maven_artifact_version=3.8.5
jarjar_version=0.4.0
fancy_mod_loader_version=2.0.17
Expand Down
7 changes: 7 additions & 0 deletions projects/neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ dependencies {
installer ("net.neoforged:JarJarMetadata:${project.jarjar_version}") {
exclude group: 'org.slf4j'
}
// In 1.20.4, we are accidentally upgrading SLF4J to a newer version than what Minecraft ships.
// We need to override the strict version to keep MDG consumers working.
installer("org.slf4j:slf4j-api") {
version {
strictly project.slf4j_api_version
}
}

compileOnly "org.jetbrains:annotations:${project.jetbrains_annotations_version}"

Expand Down

0 comments on commit 1af968a

Please sign in to comment.