-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (37 loc) · 1.06 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
plugins {
kotlin("jvm") version "1.5.21"
}
group = "net.netherald"
version = "1.0-SNAPSHOT"
/* Variables */
val paperVersion : String by project
val pbalanceVersion : String by project
val kommandVersion : String by project
val mysqlVersion : String by project
val hikariCPVersion : String by project
repositories {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
}
dependencies {
implementation(kotlin("stdlib"))
implementation("net.projecttl:PBalance-api:$pbalanceVersion")
implementation("io.github.monun:kommand-api:$kommandVersion")
compileOnly("io.papermc.paper:paper-api:$paperVersion")
implementation("mysql:mysql-connector-java:$mysqlVersion")
}
val shade = configurations.create("shade")
shade.extendsFrom(configurations.implementation.get())
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "16"
}
processResources {
filesMatching("*.yml") {
expand(project.properties)
}
}
jar {
from ( shade.map { if (it.isDirectory) it else zipTree(it) })
}
}