-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
66 lines (62 loc) · 1.86 KB
/
build.gradle.kts
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
import io.itsusinn.pkg.pkgIn
group = "org.meowcat"
version = "1.4.1"
plugins {
java
kotlin("jvm") version "1.6.0"
id("com.github.johnrengelman.shadow") version "7.1.1"
id("io.itsusinn.pkg") version "1.2.2"
}
repositories {
mavenCentral()
mavenLocal()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
pkg {
excludePath("META-INF/*.kotlin_module")
excludePathStartWith("META-INF/versions")
excludePathStartWith("META-INF/proguard")
excludePathStartWith("META-INF/maven")
excludePathStartWith("org/jetbrains")
excludePathStartWith("org/intellij")
excludePath("*.md")
excludePath("DebugProbesKt.bin")
excludePathStartWith("kotlinx/coroutines/flow")
listOf("asn1", "jcajce", "jce", "pqc", "x509", "math", "i18n", "iana", "internal").forEach {
excludePathStartWith("org/bouncycastle/$it")
}
excludePathStartWith("META-INF/maven")
shadowJar {
minimize()
mergeServiceFiles()
}
kotlinRelocate("org.yaml.snakeyaml", "$group.relocate.org.yaml.snakeyaml")
relocateKotlinStdlib()
relocateKotlinxLib()
}
java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
pkgIn("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2")
pkgIn("org.mesagisto:mesagisto-client:1.6.0-rc.7")
pkgIn("com.github.jknack:handlebars:4.3.0")
pkgIn("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.3")
compileOnly("org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT")
}
tasks {
processResources {
inputs.property("version", project.version)
filesMatching("plugin.yml") {
expand(mutableMapOf("version" to project.version))
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xinline-classes", "-opt-in=kotlin.RequiresOptIn")
}
}
}