Files
compose-multiplatform/examples/imageviewer/desktop/build.gradle.kts
Alexey Tsvetkov 563dc37c9b Add desktop application Gradle plugin
For simplified packaging and running an app
2020-10-29 20:40:27 +03:00

34 lines
847 B
Kotlin
Executable File

import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform") // kotlin("jvm") doesn't work well in IDEA/AndroidStudio (https://github.com/JetBrains/compose-jb/issues/22)
id("org.jetbrains.compose")
id("org.jetbrains.compose.desktop.application")
}
kotlin {
jvm {
withJava()
}
sourceSets {
named("jvmMain") {
dependencies {
implementation(compose.desktop.currentOs)
implementation(project(":common"))
}
}
}
}
compose.desktop {
application {
mainClass = "example.imageviewer.MainKt"
nativeExecutables {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "ImageViewer"
}
}
}