aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2020-04-25 21:03:34 +0100
committerLuck <git@lucko.me>2020-04-25 21:04:10 +0100
commit19fc34b5f43cf3baf6b32403a932940266ddcd69 (patch)
tree56850c1f03968b232edd7e0530eaf33513566e28
parent20b34c16d796e5901381e3a5a6be42e5df3c03cf (diff)
downloadspark-19fc34b5f43cf3baf6b32403a932940266ddcd69.tar.gz
spark-19fc34b5f43cf3baf6b32403a932940266ddcd69.tar.bz2
spark-19fc34b5f43cf3baf6b32403a932940266ddcd69.zip
Exclude module-info.class from shadowed jar file
Should fix issues with loading on old Forge versions.
-rw-r--r--spark-fabric/build.gradle4
-rw-r--r--spark-forge/build.gradle4
-rw-r--r--spark-universal/build.gradle4
-rw-r--r--spark-velocity/build.gradle4
4 files changed, 16 insertions, 0 deletions
diff --git a/spark-fabric/build.gradle b/spark-fabric/build.gradle
index 7bee24d..959a6c5 100644
--- a/spark-fabric/build.gradle
+++ b/spark-fabric/build.gradle
@@ -43,6 +43,10 @@ shadowJar {
relocate 'org.tukaani.xz', 'me.lucko.spark.lib.xz'
relocate 'com.google.protobuf', 'me.lucko.spark.lib.protobuf'
relocate 'org.objectweb.asm', 'me.lucko.spark.lib.asm'
+
+ exclude 'module-info.class'
+ exclude 'META-INF/maven/**'
+ exclude 'META-INF/proguard/**'
}
task remappedShadowJar(type: RemapJarTask) {
diff --git a/spark-forge/build.gradle b/spark-forge/build.gradle
index 0a3fa8f..c47408b 100644
--- a/spark-forge/build.gradle
+++ b/spark-forge/build.gradle
@@ -51,6 +51,10 @@ shadowJar {
relocate 'org.tukaani.xz', 'me.lucko.spark.lib.xz'
relocate 'com.google.protobuf', 'me.lucko.spark.lib.protobuf'
relocate 'org.objectweb.asm', 'me.lucko.spark.lib.asm'
+
+ exclude 'module-info.class'
+ exclude 'META-INF/maven/**'
+ exclude 'META-INF/proguard/**'
}
artifacts {
diff --git a/spark-universal/build.gradle b/spark-universal/build.gradle
index 10c6e69..cd5278d 100644
--- a/spark-universal/build.gradle
+++ b/spark-universal/build.gradle
@@ -18,6 +18,10 @@ shadowJar {
relocate 'org.tukaani.xz', 'me.lucko.spark.lib.xz'
relocate 'com.google.protobuf', 'me.lucko.spark.lib.protobuf'
relocate 'org.objectweb.asm', 'me.lucko.spark.lib.asm'
+
+ exclude 'module-info.class'
+ exclude 'META-INF/maven/**'
+ exclude 'META-INF/proguard/**'
}
artifacts {
diff --git a/spark-velocity/build.gradle b/spark-velocity/build.gradle
index 51c0be8..02286c7 100644
--- a/spark-velocity/build.gradle
+++ b/spark-velocity/build.gradle
@@ -23,6 +23,10 @@ shadowJar {
relocate 'org.tukaani.xz', 'me.lucko.spark.lib.xz'
relocate 'com.google.protobuf', 'me.lucko.spark.lib.protobuf'
relocate 'org.objectweb.asm', 'me.lucko.spark.lib.asm'
+
+ exclude 'module-info.class'
+ exclude 'META-INF/maven/**'
+ exclude 'META-INF/proguard/**'
}
artifacts {