-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
53 lines (44 loc) · 1.22 KB
/
build.gradle.kts
File metadata and controls
53 lines (44 loc) · 1.22 KB
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
plugins {
kotlin("jvm") version "2.2.20"
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("plugin.serialization") version "2.2.20"
}
group = "de.ionnetwork"
version = "1.0.0"
repositories {
mavenCentral()
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "spigotmc"
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
}
dependencies {
// Spigot API for compatibility with 1.8+
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
// Kotlinx serialization for JSON
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
}
kotlin {
jvmToolchain(17)
}
tasks {
shadowJar {
archiveClassifier.set("")
archiveBaseName.set("EventControl")
// Relocate Kotlin and kotlinx libraries to avoid conflicts
relocate("kotlin", "de.ionnetwork.eventcontrol.libs.kotlin")
relocate("kotlinx", "de.ionnetwork.eventcontrol.libs.kotlinx")
}
build {
dependsOn(shadowJar)
}
processResources {
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
}