-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (44 loc) · 1.29 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
import org.jetbrains.kotlin.com.intellij.openapi.vfs.StandardFileSystems.jar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id("org.jetbrains.kotlin.jvm") version "1.7.22"
id("com.github.johnrengelman.shadow") version "6.1.0"
id("java")
}
group = "me.zax71.spleef"
version = "1.0.0"
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
dependencies {
// Kotlin
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.22")
// Server API
implementation("com.github.Minestom:Minestom:809d9516b2")
// Text pharsing
implementation("net.kyori:adventure-text-minimessage:4.12.0")
// Config util
implementation("com.github.simplix-softworks:simplixstorage:3.2.4")
// Logging util
implementation("org.tinylog:tinylog-api-kotlin:2.5.0")
implementation("org.tinylog:tinylog-impl:2.5.0")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType<ShadowJar> {
manifest {
attributes["Main-Class"] = "me.zax71.spleef.MainKt"
}
}
tasks.named("build") {
dependsOn(tasks.named("shadowJar"))
}