From 4f5bc46d43cd3ab31604b985e4153a73a86992fb Mon Sep 17 00:00:00 2001 From: William Date: Mon, 17 Jun 2024 00:09:21 +0100 Subject: [PATCH] build: fix fabric builds being obscenely large --- build.gradle | 4 ---- fabric-1.20.1/build.gradle | 8 ++++++++ fabric-1.20.6/build.gradle | 8 ++++++++ gradle.properties | 2 +- 4 files changed, 17 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 62ef3cc..6ff945a 100644 --- a/build.gradle +++ b/build.gradle @@ -104,10 +104,6 @@ subprojects { archiveClassifier.set('') } - //if (['example-plugin', 'fabric-1.20.6', 'paper'].contains(project.name)) { - // compileJava.options.release.set 21 - //} - // Don't include example plugin in publishing if (['example-plugin'].contains(project.name)) return; diff --git a/fabric-1.20.1/build.gradle b/fabric-1.20.1/build.gradle index a01956a..d058d99 100644 --- a/fabric-1.20.1/build.gradle +++ b/fabric-1.20.1/build.gradle @@ -16,4 +16,12 @@ dependencies { compileOnly 'org.projectlombok:lombok:1.18.32' annotationProcessor 'org.projectlombok:lombok:1.18.32' +} + +shadowJar { + configurations = [project.configurations.shadow] + + exclude('net.fabricmc:.*') + exclude('net.kyori:.*') + exclude '/mappings/*' } \ No newline at end of file diff --git a/fabric-1.20.6/build.gradle b/fabric-1.20.6/build.gradle index fecb70c..139a2eb 100644 --- a/fabric-1.20.6/build.gradle +++ b/fabric-1.20.6/build.gradle @@ -16,4 +16,12 @@ dependencies { compileOnly 'org.projectlombok:lombok:1.18.32' annotationProcessor 'org.projectlombok:lombok:1.18.32' +} + +shadowJar { + configurations = [project.configurations.shadow] + + exclude('net.fabricmc:.*') + exclude('net.kyori:.*') + exclude '/mappings/*' } \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 6b80447..d5fe0c8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,6 +3,6 @@ javaVersion=17 org.gradle.jvmargs='-Dfile.encoding=UTF-8' org.gradle.daemon=true -library_version=1.0.4 +library_version=1.0.5 library_archive=uniform library_description=Cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. \ No newline at end of file