aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle15
1 files changed, 15 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 5d15ff2..cc6d1d2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -21,6 +21,21 @@ subprojects {
patchVersion = determinePatchVersion()
pluginVersion = baseVersion + '.' + patchVersion
pluginDescription = 'spark is a performance profiling plugin/mod for Minecraft clients, servers and proxies.'
+
+ applyExcludes = { Jar jarTask ->
+ jarTask.exclude 'module-info.class'
+ jarTask.exclude 'META-INF/maven/**'
+ jarTask.exclude 'META-INF/proguard/**'
+ jarTask.exclude 'META-INF/LICENSE'
+ jarTask.exclude 'META-INF/NOTICE'
+ // protobuf
+ jarTask.exclude '**/*.proto'
+ jarTask.exclude '**/*.proto.bin'
+ // async-profiler
+ jarTask.exclude 'linux-arm64/**'
+ jarTask.exclude 'linux-x64/**'
+ jarTask.exclude 'macos/**'
+ }
}
tasks.withType(JavaCompile).configureEach {