-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (58 loc) · 1.68 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
plugins {
kotlin("jvm") version "2.1.0"
kotlin("plugin.serialization") version "2.1.0"
id("io.papermc.paperweight.userdev") version "2.0.0-beta.14"
id("xyz.jpenilla.run-paper") version "2.3.1"
}
group = "net.eve0415"
version = "1.0-SNAPSHOT"
repositories {
gradlePluginPortal()
mavenCentral()
}
dependencies {
paperweight {
paperDevBundle("1.21.4-R0.1-SNAPSHOT")
}
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-api:2.20.0")
implementation("com.github.shynixn.mccoroutine:mccoroutine-bukkit-core:2.20.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
}
kotlin {
jvmToolchain(21)
}
tasks {
compileKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
apiVersion.set(KotlinVersion.KOTLIN_2_1)
languageVersion.set(KotlinVersion.KOTLIN_2_1)
}
}
compileTestKotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
apiVersion.set(KotlinVersion.KOTLIN_2_1)
languageVersion.set(KotlinVersion.KOTLIN_2_1)
}
}
withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}
processResources {
inputs.property("version", project.version)
from(sourceSets.main.get().resources.srcDirs) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
include("plugin.yml")
expand("version" to project.version)
}
}
build {
dependsOn(reobfJar)
}
runServer {
minecraftVersion("1.21")
}
}