willow/build.gradle.kts
Marvin Elsen 8976165b27
Some checks failed
Pull Request / build (pull_request) Failing after 3m11s
Add shadow plugin to create uber JAR
2024-11-05 12:01:23 +01:00

66 lines
1.3 KiB
Plaintext

plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.detekt)
alias(libs.plugins.shadow)
alias(libs.plugins.jfx)
java
}
group = "com.marvinelsen"
version = "1.0.0"
repositories {
mavenCentral()
repositories {
maven {
url = uri("https://gitea.marvinelsen.com/api/packages/marvinelsen/maven")
}
}
}
dependencies {
detektPlugins(libs.detekt.formatting)
implementation(libs.sqlite.jdbc)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.html.jvm)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.javafx)
implementation(libs.segment)
implementation(libs.ikonli.javafx)
implementation(libs.slf4j.nop)
testImplementation(libs.kotest.core)
testImplementation(libs.kotest.assertions)
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
javafx {
version = libs.versions.javafx.get()
modules("javafx.base", "javafx.graphics", "javafx.controls", "javafx.fxml", "javafx.web")
}
detekt {
buildUponDefaultConfig = true
allRules = false
autoCorrect = true
}
tasks.jar {
manifest {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
attributes["Main-Class"] = "com.marvinelsen.willow.MainKt"
}
}