potrogue/build.gradle.kts

71 lines
1.7 KiB
Text
Raw Permalink Normal View History

2023-10-27 01:33:00 -06:00
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
val zircon_version: String by project
2023-10-29 02:24:00 -06:00
val amethyst_version: String by project
2023-10-27 01:33:00 -06:00
val slf4j_version: String by project
val junit_version: String by project
val mockito_version: String by project
val assertj_version: String by project
val game_name: String by project
2023-10-27 01:33:00 -06:00
plugins {
2023-11-06 02:58:38 -07:00
kotlin("jvm") version "1.9.20"
2023-10-30 11:23:31 -06:00
`kotlin-dsl`
id("com.github.johnrengelman.shadow") version "8.1.1"
2023-10-27 01:33:00 -06:00
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
java {
sourceCompatibility = JavaVersion.VERSION_20
targetCompatibility = JavaVersion.VERSION_20
2023-10-27 01:33:00 -06:00
}
dependencies {
implementation("org.slf4j:slf4j-api:$slf4j_version")
implementation("org.slf4j:slf4j-simple:$slf4j_version")
implementation("org.hexworks.zircon:zircon.core-jvm:$zircon_version")
implementation("org.hexworks.zircon:zircon.jvm.swing:$zircon_version")
2023-10-29 02:24:00 -06:00
implementation("org.hexworks.amethyst:amethyst.core-jvm:$amethyst_version")
2023-10-27 01:33:00 -06:00
implementation(kotlin("stdlib-jdk8"))
2023-10-29 12:40:19 -06:00
implementation("org.freedesktop:xdg-java:0.0.1-SNAPSHOT@jar")
implementation("org.assertj:assertj-core:3.6.2")
2023-10-30 12:32:21 -06:00
implementation("com.akuleshov7:ktoml-core:0.5.0")
implementation("com.akuleshov7:ktoml-file:0.5.0")
2023-11-06 04:37:51 -07:00
implementation("dev.dirs:directories:26")
2023-10-27 01:33:00 -06:00
}
2024-02-12 18:45:21 -07:00
2023-10-27 01:33:00 -06:00
tasks {
named<ShadowJar>("shadowJar") {
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "group.ouroboros.potrogue.MainKt"))
2023-10-27 01:33:00 -06:00
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "group.ouroboros.potrogue.MainKt"
2023-10-27 01:33:00 -06:00
}
}