diff --git a/gradle.properties b/gradle.properties index 49e189b340..2119c86024 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/projects/neoforge/build.gradle b/projects/neoforge/build.gradle index 6754ae9d9a..49e6d63762 100644 --- a/projects/neoforge/build.gradle +++ b/projects/neoforge/build.gradle @@ -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}"