From b6d352fbce1cf6311113032d1e423ff9e913d943 Mon Sep 17 00:00:00 2001 From: coolGi Date: Mon, 17 Jul 2023 22:37:33 +0930 Subject: [PATCH] Fixed some typos in the gradle script --- build.gradle | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 3be125e3f..3ed226345 100644 --- a/build.gradle +++ b/build.gradle @@ -232,7 +232,7 @@ subprojects { p -> // Netty forgeShadowMe("io.netty:netty-all:${rootProject.netty_version}") - // Remember, for lwjgl dependancies that arent included in Minecraft, you need to also need to add it to the ShadowJar thing + // Remember, for lwjgl dependencies that arent included in Minecraft, you need to also need to add it to the ShadowJar thing forgeShadowMe("org.lwjgl:lwjgl-jawt:3.2.2") { exclude group: "org.lwjgl", module: "lwjgl" // This module is imported by Minecraft so exclude it } @@ -392,12 +392,14 @@ subprojects { p -> - // Delete un-needed files + // ==================== Delete un-needed files ==================== exclude "DistantHorizons.fabricLike.mixins.json" // This isnt required atm, but we will be using it later + // exclude "*.distanthorizons.accesswidener" //// include "${accessWidenerVersion}.distanthorizons.accesswidener" + // Jank solution to remove all unused accesswideners - // The line above would work..., except forge requires the original accesswidener, meaning we require this jank solution to keep it + // The line above would work..., except forge requires the original accesswidener file, meaning we require this jank solution to keep it exclude { file -> if (file.name.contains(".distanthorizons.accesswidener") && file.name != "${accessWidenerVersion}.distanthorizons.accesswidener") { return true @@ -533,10 +535,11 @@ allprojects { p -> // Set the OS lwjgl is using to the current os project.ext.lwjglNatives = "natives-" + os.toFamilyName() - dependencies { // All of these dependancies are in Vanilla Minecraft, but we need to depend on it as we arent importing Minecraft in the core + dependencies { // All of these dependencies are in Vanilla Minecraft, but we need to depend on it as we arent importing Minecraft in the core // Imports most of lwjgl's libraries (well, only the ones that we need) - implementation platform("org.lwjgl:lwjgl-bom:${rootProject.lwjgl_version}") // TODO: Use Minecraft's version for lwjgl_version (which changes each version) instead of a hard defined version for all versions + implementation platform("org.lwjgl:lwjgl-bom:${rootProject.lwjgl_version}") // TODO: Use Minecraft's version for lwjgl_version (which changes in nearly every version) instead of a hard defined version for all versions + // REMEMBER: Dont shadow stuff here, these are just the libs that are included in Minecraft so that the core can use implementation "org.lwjgl:lwjgl" implementation "org.lwjgl:lwjgl-assimp" implementation "org.lwjgl:lwjgl-glfw"