From 6b90951ab24d028a0c251364ed0adeb112ba9cd5 Mon Sep 17 00:00:00 2001 From: Zontreck Date: Wed, 14 Feb 2024 04:31:25 -0700 Subject: [PATCH] Remove eventbus dependency --- build.gradle | 13 +++++++++---- gradle.properties | 3 +-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index de99d73..d875f62 100644 --- a/build.gradle +++ b/build.gradle @@ -62,7 +62,7 @@ minecraft { // When true, this property will add the folder name of all declared run configurations to generated IDE run configurations. // The folder name can be set on a run configuration using the "folderName" property. // By default, the folder name of a run configuration is the name of the Gradle project containing it. - // generateRunFolders = true + generateRunFolders = true // This property enables access transformers for use in development. // They will be applied to the Minecraft artifact. @@ -164,9 +164,6 @@ dependencies { provided "dev.zontreck:LibAC:${libac}" - - provided "dev.zontreck:EventsBus:${eventsbus}" - // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") @@ -204,6 +201,14 @@ tasks.withType(ProcessResources).configureEach { // Example for how to get properties into the manifest for reading at runtime. tasks.named('jar', Jar).configure { + + duplicatesStrategy = "exclude" + from { configurations.provided.collect { it.isDirectory() ? it : zipTree(it) } } + + exclude 'META-INF/*' + exclude 'META-INF/*' + exclude 'META-INF/*' + manifest { attributes([ 'Specification-Title' : mod_id, diff --git a/gradle.properties b/gradle.properties index bf9ca6c..46d9712 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,8 +7,7 @@ org.gradle.daemon=false # parchment_version=2023.09.03 # luckperms_api_version=5.4 -libac=1.4.46 -eventsbus=1.0.45 +libac=1.4.48 ## Environment Properties # The Minecraft version must agree with the Forge version to get a valid artifact