-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (47 loc) · 1.38 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
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
kotlin("jvm") version "1.9.23"
application
`java-library`
id("io.papermc.paperweight.userdev") version "1.7.1"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "ru.luk.chargedheads"
version = "1.1"
application {
mainClass.set("$group.ChargedHeads")
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.codemc.org/repository/maven-public/")
}
dependencies {
paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT")
}
bukkit {
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
main = application.mainClass.get()
apiVersion = "1.17"
authors = listOf("_LuK__")
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
enabled = true
}
withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
@Suppress("deprecation", "RedundantSuppression")
archiveFileName.set("ChargedHeads-$version.jar")
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}