-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
48 lines (38 loc) · 934 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.0"
id("com.github.johnrengelman.shadow") version "7.1.2"
id("net.minecrell.plugin-yml.bukkit") version "0.5.2"
}
group = "ru.kdev"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven {
url = uri("https://repo.papermc.io/repository/maven-public/")
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.19-R0.1-SNAPSHOT")
testImplementation(kotlin("test"))
testImplementation("com.github.seeseemelk:MockBukkit-v1.19:2.29.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
bukkit {
main = "ru.kdev.template.TemplatePlugin"
apiVersion = "1.13"
author = "fiwka"
}
tasks {
test {
useJUnitPlatform()
}
build {
dependsOn(shadowJar)
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
}