Files
ExtraTestModuleExample/composeApp/build.gradle.kts
Julien Lengrand-Lambert b792396835 Creates default project
2025-04-30 10:14:33 +02:00

56 lines
1.4 KiB
Kotlin

import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.composeMultiplatform)
alias(libs.plugins.composeCompiler)
}
kotlin {
jvm("desktop")
sourceSets {
val desktopMain by getting
val desktopTest by getting
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(compose.components.uiToolingPreview)
implementation(libs.androidx.lifecycle.viewmodel)
implementation(libs.androidx.lifecycle.runtime.compose)
}
desktopMain.dependencies {
implementation(compose.desktop.currentOs)
implementation(libs.kotlinx.coroutines.swing)
}
desktopTest.dependencies {
implementation(kotlin("test"))
implementation(libs.junit5)
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
}
compose.desktop {
application {
mainClass = "nl.lengrand.MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
packageName = "nl.lengrand"
packageVersion = "1.0.0"
}
}
}