-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
65 lines (53 loc) · 1.43 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
plugins {
kotlin("jvm") version "2.0.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "de.bypixeltv"
version = "1.0.2"
repositories {
mavenCentral()
maven {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
}
dependencies {
implementation(kotlin("stdlib"))
// Kotlinx Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC")
compileOnly("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
implementation("redis.clients:jedis:5.2.0-beta4")
implementation("dev.jorel:commandapi-velocity-shade:9.5.0-SNAPSHOT")
implementation("org.yaml:snakeyaml:2.2")
implementation("org.bstats:bstats-velocity:3.0.2")
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
}
sourceSets {
getByName("main") {
java {
srcDir("src/main/java")
}
kotlin {
srcDir("src/main/kotlin")
}
}
}
tasks {
compileJava {
options.encoding = "UTF-8"
options.release.set(17)
}
named("compileKotlin", org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask::class.java)
build {
dependsOn(shadowJar)
}
shadowJar {
relocate("org.bstats", "de.bypixeltv.redivelocity.metrics")
}
}
kotlin {
jvmToolchain(17)
}