53 lines
1.7 KiB
Kotlin
53 lines
1.7 KiB
Kotlin
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("org.jetbrains.compose")
|
|
}
|
|
|
|
group = "com.example"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
// Note, if you develop a library, you should use compose.desktop.common.
|
|
// compose.desktop.currentOs should be used in launcher-sourceSet
|
|
// (in a separate module for demo project and in testMain).
|
|
// With compose.desktop.common you will also lose @Preview functionality
|
|
implementation(compose.desktop.currentOs)
|
|
implementation(kotlin("stdlib"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.0")
|
|
implementation("mysql:mysql-connector-java:8.0.23")
|
|
implementation("org.jetbrains.compose.material:material:1.0.0-beta-02")
|
|
implementation("org.jetbrains.compose.ui:ui:1.0.0-beta-02")
|
|
implementation("org.jetbrains.compose.foundation:foundation:1.0.0-beta-02")
|
|
implementation("org.jetbrains.compose.desktop:desktop:1.0.0-beta-02")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
|
|
implementation("io.ktor:ktor-client-cio:1.6.3")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30")
|
|
implementation("com.almworks.sqlite4java:sqlite4java:1.0.392")
|
|
implementation("io.ktor:ktor-server-netty:1.6.3")
|
|
implementation("io.ktor:ktor-html-builder:1.6.3")
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = "MainKt"
|
|
|
|
nativeDistributions {
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
packageName = "demo"
|
|
packageVersion = "1.0.0"
|
|
}
|
|
}
|
|
}
|