-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
68 lines (60 loc) · 2.49 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
67
68
plugins {
id("com.github.johnrengelman.shadow") version "7.0.0"
java
}
val buildNum = System.getenv("CI_PIPELINE_IID") ?: "dirty"
group = "com.vanillarite"
version = "0.2.5-$buildNum"
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.incendo.org/content/repositories/snapshots")
maven("https://ci.frostcast.net/plugin/repository/everything")
maven("https://repo.codemc.io/repository/maven-public/")
maven("https://mvn-repo.arim.space/affero-gpl3/")
maven("https://mvn-repo.arim.space/lesser-gpl3/")
maven("https://mvn-repo.arim.space/gpl3/")
}
dependencies {
compileOnly("io.papermc.paper", "paper-api", "1.19-R0.1-SNAPSHOT")
implementation("cloud.commandframework", "cloud-paper", "1.8.3")
implementation("cloud.commandframework", "cloud-annotations", "1.8.3")
implementation("org.spongepowered", "configurate-yaml", "4.1.2")
compileOnly("me.confuser.banmanager", "BanManagerCommon", "7.6.0-SNAPSHOT")
compileOnly("me.confuser.banmanager", "BanManagerBukkit", "7.6.0-SNAPSHOT")
implementation("info.debatty", "java-string-similarity", "2.0.0")
compileOnly("space.arim.libertybans", "bans-api", "1.0.0")
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks {
shadowJar {
dependencies {
exclude(dependency("com.google.guava:"))
exclude(dependency("com.google.errorprone:"))
exclude(dependency("org.checkerframework:"))
exclude(dependency("org.jetbrains:"))
exclude(dependency("org.intellij:"))
exclude(dependency("org.yaml:snakeyaml:"))
exclude(dependency("net.jcip:"))
}
relocate("cloud.commandframework", "${rootProject.group}.filter.shade.cloud")
relocate("io.leangen.geantyref", "${rootProject.group}.filter.shade.typetoken")
relocate("org.spongepowered.configurate", "${rootProject.group}.filter.shade.configurate")
relocate("info.debatty", "${rootProject.group}.filter.shade.debatty")
archiveClassifier.set(null as String?)
destinationDirectory.set(rootProject.tasks.shadowJar.get().destinationDirectory.get())
}
build {
dependsOn(shadowJar)
}
withType<ProcessResources> {
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand("version" to version)
}
}
}