65 lines
2.1 KiB
Plaintext
65 lines
2.1 KiB
Plaintext
group = "net.hareworks.hcu"
|
|
version = "1.3"
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.2.21"
|
|
id("de.eldoria.plugin-yml.paper") version "0.8.0"
|
|
id("com.gradleup.shadow") version "9.2.2"
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
|
|
val exposedVersion = "1.0.0-rc-4"
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
|
|
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib")
|
|
implementation("com.michael-bull.kotlin-result:kotlin-result:2.1.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
|
|
|
|
implementation("net.kyori:adventure-api:4.25.0")
|
|
implementation("net.kyori:adventure-text-minimessage:4.25.0")
|
|
implementation("net.hareworks:kommand-lib")
|
|
implementation("net.hareworks:permits-lib")
|
|
|
|
implementation("org.postgresql:postgresql:42.7.8")
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposedVersion")
|
|
implementation("com.zaxxer:HikariCP:6.2.1")
|
|
|
|
}
|
|
tasks {
|
|
withType<Jar> {
|
|
archiveBaseName.set("hcu-core")
|
|
}
|
|
shadowJar {
|
|
archiveClassifier.set("min")
|
|
minimize {
|
|
exclude("net.hareworks:kommand-lib")
|
|
exclude("net.hareworks:permits-lib")
|
|
exclude(dependency("org.jetbrains.exposed:exposed-core"))
|
|
exclude(dependency("org.jetbrains.exposed:exposed-dao"))
|
|
exclude(dependency("org.jetbrains.exposed:exposed-jdbc"))
|
|
exclude(dependency("org.jetbrains.exposed:exposed-kotlin-datetime"))
|
|
exclude(dependency("org.postgresql:postgresql"))
|
|
}
|
|
}
|
|
}
|
|
|
|
paper {
|
|
main = "net.hareworks.hcu.core.Main"
|
|
name = "hcu-core"
|
|
description = "libraries and implementations for Hare's civilized universe"
|
|
version = getVersion().toString()
|
|
apiVersion = "1.21.10"
|
|
authors = listOf(
|
|
"Hare-K02",
|
|
)
|
|
}
|