generated from emmaboecker/kspigot-gradle-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
67 lines (59 loc) · 1.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
plugins {
kotlin("jvm") version "1.7.0"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("io.papermc.paperweight.userdev") version "1.3.6"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
}
group = "de.stckoverflw"
version = "1.4.2"
repositories {
mavenCentral()
maven("https://repo.dmulloy2.net/repository/public/")
maven("https://repo.codemc.io/repository/maven-snapshots/")
maven("https://libraries.minecraft.net")
}
dependencies {
// PaperMC Dependency
paperDevBundle("1.19-R0.1-SNAPSHOT")
// KSpigot dependency
implementation("net.axay", "kspigot", "1.19.0")
// ProtocolLib
implementation("com.comphenix.protocol", "ProtocolLib", "4.8.0")
}
kotlin {
jvmToolchain {
this.languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
build {
dependsOn(reobfJar)
}
compileKotlin {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
}
compileJava {
options.encoding = "UTF-8"
options.release.set(17)
}
}
bukkit {
name = "StckUtils"
apiVersion = "1.19"
authors = listOf(
"StckOverflw",
"l4zs",
)
main = "$group.stckutils.StckUtilsPlugin"
website = "https://github.com/StckOverflwNet/StckUtils/"
version = getVersion().toString()
libraries = listOf(
"net.axay:kspigot:1.19.0",
)
softDepend = listOf(
"ProtocolLib",
)
}