diff --git a/build.gradle b/build.gradle index 3cb03b3..755455d 100644 --- a/build.gradle +++ b/build.gradle @@ -98,6 +98,15 @@ configurations { runtimeClasspath.extendsFrom localRuntime } +configurations.all { + resolutionStrategy { + // Override vulnerable netty-common dependency until Minecraft updates + // to a newer version. v4.1.97.Final, used by Minecraft 1.21 - 1.21.3, + // is vulnerable to CVE-2024-47535. + force "io.netty:netty-common:4.1.115.Final" + } +} + dependencies { // Specify the version of Minecraft to use. // Depending on the plugin applied there are several options. We will assume you applied the userdev plugin as shown above. @@ -225,7 +234,6 @@ task github(dependsOn: build) { def github = GitHub.connectUsingOAuth(ENV.GITHUB_TOKEN as String) def repository = github.getRepository("Wurst-Imperium-MCX/Mo-Glass") def ghVersion = "v" + version.substring(0, version.indexOf("-")) - def archivesName = project.base.archivesName.get() as String def ghRelease = repository.getReleaseByTagName(ghVersion as String) if(ghRelease == null) {