-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (50 loc) · 1.89 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
plugins {
id("com.github.johnrengelman.shadow") version "7.0.0"
java
}
val buildNum = System.getenv("CI_PIPELINE_IID") ?: "dirty"
group = "com.vanillarite"
version = "0.3.2-$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")
}
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("io.github.java-diff-utils", "java-diff-utils", "4.5")
implementation("org.spongepowered", "configurate-yaml", "4.1.2")
}
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:"))
}
relocate("cloud.commandframework", "${rootProject.group}.faq.shade.cloud")
relocate("io.leangen.geantyref", "${rootProject.group}.faq.shade.typetoken")
relocate("com.github.difflib", "${rootProject.group}.faq.shade.difflib")
relocate("org.spongepowered.configurate", "${rootProject.group}.faq.shade.configurate")
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)
}
}
}