-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
107 lines (85 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
plugins {
kotlin("jvm") version "2.1.0"
id("io.papermc.paperweight.userdev") version "1.7.7"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("com.gradleup.shadow") version "8.3.5"
}
val versionString = "1.7.7"
group = "de.bypixeltv"
version = versionString
repositories {
mavenCentral()
maven("https://jitpack.io")
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://repo.skriptlang.org/releases")
}
}
dependencies {
paperweight.paperDevBundle("1.21.3-R0.1-SNAPSHOT")
bukkitLibrary(libs.kspigot) {
exclude(group = "org.bukkit", module = "bukkit")
}
bukkitLibrary(libs.commandapi.kotlin) {
exclude(group = "org.bukkit", module = "bukkit")
}
bukkitLibrary(libs.commandapi.shade) {
exclude(group = "org.bukkit", module = "bukkit")
}
compileOnly(libs.skript) {
exclude(group = "org.bukkit", module = "bukkit")
}
implementation("com.github.technicallycoded:FoliaLib:main-SNAPSHOT")
compileOnly(libs.cloudnet.driver) {
exclude(group = "org.bukkit", module = "bukkit")
}
compileOnly(libs.cloudnet.bridge) {
exclude(group = "org.bukkit", module = "bukkit")
}
compileOnly(libs.cloudnet.wrapper.jvm) {
exclude(group = "org.bukkit", module = "bukkit")
}
compileOnly(libs.cloudnet.syncproxy) {
exclude(group = "org.bukkit", module = "bukkit")
}
}
sourceSets {
getByName("main") {
java {
srcDir("src/main/java")
}
kotlin {
srcDir("src/main/kotlin")
}
}
}
tasks {
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
}
shadowJar {
relocate("com.tcoded.folialib", "de.bypixeltv.skcloudnet.lib.folialib")
archiveBaseName.set("SkCloudnet")
archiveVersion.set(version.toString())
archiveClassifier.set("")
}
}
paperweight.reobfArtifactConfiguration = io.papermc.paperweight.userdev.ReobfArtifactConfiguration.MOJANG_PRODUCTION
bukkit {
main = "de.bypixeltv.skcloudnet.Main"
version = versionString
foliaSupported = true
apiVersion = "1.21"
authors = listOf("byPixelTV")
website = "https://github.com/byPixelTV/SkCloudnet"
description = "A Skript-Addon to interact with your CloudNet v4 instance."
depend = listOf("CloudNet-Bridge", "Skript")
prefix = "SkCloudnet"
}
kotlin {
jvmToolchain(21)
}