-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (64 loc) · 2.23 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id "com.github.johnrengelman.shadow" version "$shadowVersion"
id "net.kyori.blossom" version "$blossomVersion" apply false
id "com.replaymod.preprocess" version "$preprocessVersion"
id "org.jetbrains.kotlin.jvm" version "$kotlinVersion"
id "fabric-loom" version "0.10-SNAPSHOT" apply false
id "maven-publish"
id "signing"
id "java"
}
archivesBaseName = projectGroup
group = projectGroup
version = projectVersion
sourceCompatibility = targetCompatibility = "1.8"
compileJava.options.encoding = "UTF-8"
compileKotlin.kotlinOptions.languageVersion = "1.6"
compileKotlin.kotlinOptions.jvmTarget = "1.8"
allprojects {
apply plugin: "com.github.johnrengelman.shadow"
version = projectVersion
group = projectGroup
configurations {
shade
implementation.extendsFrom(shade)
}
repositories {
maven { url "https://s01.oss.sonatype.org/content/repositories/releases/" }
mavenCentral()
mavenLocal()
maven { url "https://jitpack.io/" }
maven { url "https://repo.spongepowered.org/maven/" }
maven { url "https://repo.sk1er.club/repository/maven-public/" }
maven { url "https://repo.sk1er.club/repository/maven-releases/" }
}
jar {
from "LICENSE"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude("META-INF/INDEX.LIST", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "module-info.class")
}
shadowJar {
archiveClassifier.set("")
configurations = [project.configurations.shade]
duplicatesStrategy DuplicatesStrategy.EXCLUDE
exclude("pack.mcmeta")
exclude("dummyThing")
exclude("**/module-info.class")
exclude("*.so")
exclude("*.dylib")
exclude("*.dll")
exclude("*.jnilib")
exclude("ibxm/**")
exclude("com/jcraft/**")
exclude("org/lwjgl/**")
exclude("net/java/**")
exclude("META-INF/proguard/**")
exclude("META-INF/maven/**")
exclude("META-INF/versions/**")
exclude("META-INF/com.android.tools/**")
exclude('**/*.kotlin_metadata')
exclude('**/*.kotlin_module')
exclude('**/*.kotlin_builtins')
}
jar.finalizedBy(shadowJar)
}