-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
45 lines (37 loc) · 1.22 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.7.20"
id("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("plugin.serialization") version "1.8.10"
}
group = "dev.mr3n"
repositories {
mavenCentral()
// for spigot
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://libraries.minecraft.net")
// for protocollib
maven("https://repo.dmulloy2.net/repository/public/")
// for minepie
maven("https://jitpack.io")
}
dependencies {
testImplementation(kotlin("test"))
compileOnly("org.spigotmc:spigot-api:1.19.3-R0.1-SNAPSHOT")
compileOnly("com.comphenix.protocol:ProtocolLib:5.0.0-SNAPSHOT")
implementation("com.github.moruch4nn:MinePie:4406de1615")
implementation("io.ktor:ktor-client-core:2.2.4")
implementation("io.ktor:ktor-client-cio:2.2.4")
implementation("io.ktor:ktor-client-websockets:2.2.4")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.2.4")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
}
tasks.test {
useJUnitPlatform()
}
tasks.named("build") {
dependsOn("shadowJar")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}