-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
54 lines (44 loc) · 1.41 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
}
group = property("group")!!
version = property("version")!!
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
val exposed = property("exposed_version")
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("io.github.monun:kommand-api:3.1.7")
implementation("net.projecttl:InventoryGUI-api:4.4.0")
implementation("org.jetbrains.exposed:exposed-core:$exposed")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed")
compileOnly("org.mariadb.jdbc:mariadb-java-client:3.2.0")
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17.toString()
}
processResources {
filesMatching("plugin.yml") {
expand(project.properties)
}
}
create<Jar>("paperJar") {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
archiveVersion.set("")
from(sourceSets["main"].output)
doLast {
val dir = File("\$HOME/Workspace/.Service/papermc/plugins")
file("build/libs/${rootProject.name}.jar").copyTo(dir, true)
}
}
}