-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (44 loc) · 1019 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
49
50
51
plugins {
java
id("org.jetbrains.kotlin.jvm") version "2.0.0-Beta5"
id("xyz.jpenilla.run-paper") version "2.2.2"
}
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
maven {
url = uri("https://repo.extendedclip.com/content/repositories/placeholderapi/")
}
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.0")
compileOnly("io.papermc.paper:paper-api:1.20.6-R0.1-SNAPSHOT")
compileOnly("me.clip:placeholderapi:2.11.5")
}
tasks.jar {
manifest {
attributes["Main-Class"] = "net.sneakydispatch.SneakyDispatch"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}
configure<JavaPluginConvention> {
sourceSets {
main {
java.srcDir("src/main/kotlin")
resources.srcDir(file("src/resources"))
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
runServer {
minecraftVersion("1.20.6")
}
}