37 lines
884 B
Text
37 lines
884 B
Text
|
import org.jetbrains.compose.compose
|
||
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "1.6.10"
|
||
|
id("org.jetbrains.compose") version "1.1.1"
|
||
|
}
|
||
|
|
||
|
group = "xyz.atnrch"
|
||
|
version = "dev"
|
||
|
|
||
|
repositories {
|
||
|
google()
|
||
|
mavenCentral()
|
||
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
implementation(compose.desktop.currentOs)
|
||
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.4")
|
||
|
}
|
||
|
|
||
|
tasks.withType<KotlinCompile> {
|
||
|
kotlinOptions.jvmTarget = "16"
|
||
|
}
|
||
|
|
||
|
compose.desktop {
|
||
|
application {
|
||
|
mainClass = "MainKt"
|
||
|
nativeDistributions {
|
||
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||
|
packageName = "Wrench"
|
||
|
packageVersion = "1.0.0"
|
||
|
}
|
||
|
}
|
||
|
}
|