mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-02 21:00:56 +00:00
52 lines
1.0 KiB
Plaintext
52 lines
1.0 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
application
|
|
|
|
kotlin("jvm") version "1.9.0"
|
|
kotlin("plugin.serialization") version "1.9.0"
|
|
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
|
id("org.graalvm.buildtools.native") version "0.9.23"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
java {
|
|
val javaVersion = JavaVersion.toVersion(17)
|
|
sourceCompatibility = javaVersion
|
|
targetCompatibility = javaVersion
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlin:kotlin-bom")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
implementation("com.github.ajalt.clikt:clikt:4.2.0")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "17"
|
|
}
|
|
|
|
tasks.withType<Wrapper> {
|
|
gradleVersion = "8.3"
|
|
}
|
|
|
|
application {
|
|
mainClass.set("gay.pizza.pork.cli.MainKt")
|
|
}
|
|
|
|
graalvmNative {
|
|
binaries {
|
|
named("main") {
|
|
imageName.set("pork")
|
|
mainClass.set("gay.pizza.pork.cli.MainKt")
|
|
sharedLibrary.set(false)
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.run.get().outputs.upToDateWhen { false }
|