-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
65 lines (51 loc) · 1.25 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
kotlin("jvm") version "2.0.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("io.papermc.paperweight.userdev") version "1.7.1"
}
group = "com.example"
version = "1.0"
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.flyte.gg/releases")
}
dependencies {
paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT")
implementation("gg.flyte:twilight:1.1.12")
implementation("com.github.Revxrsal.Lamp:common:3.2.1")
implementation("com.github.Revxrsal.Lamp:bukkit:3.2.1")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
kotlin {
jvmToolchain(21)
}
tasks {
build {
dependsOn(shadowJar)
}
assemble {
dependsOn(reobfJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.release.set(21)
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "21"
}
application {
mainClass.set("TestPluginKt")
}