mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 19:07:02 +05:30
all: reorganize dependencies and improve desktop packaging
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
388014d62b
commit
4a51dc8d64
8 changed files with 37 additions and 21 deletions
|
@ -1,23 +1,41 @@
|
|||
import org.jetbrains.compose.compose
|
||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
kotlin("multiplatform")
|
||||
id("org.jetbrains.compose") version Dependencies.JB_COMPOSE_VERSION
|
||||
`lobsters-plugin`
|
||||
}
|
||||
|
||||
repositories { maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") }
|
||||
|
||||
dependencies {
|
||||
implementation(project(":api"))
|
||||
implementation(project(":common"))
|
||||
implementation(project(":database"))
|
||||
implementation(compose.desktop.currentOs)
|
||||
implementation(compose.runtime)
|
||||
implementation(compose.material)
|
||||
implementation(Dependencies.Kotlin.Coroutines.jvmCore)
|
||||
implementation(Dependencies.ThirdParty.kamel)
|
||||
implementation(Dependencies.ThirdParty.Retrofit.moshi)
|
||||
kotlin {
|
||||
jvm {
|
||||
withJava()
|
||||
}
|
||||
sourceSets {
|
||||
named("jvmMain") {
|
||||
dependencies {
|
||||
implementation(compose.desktop.currentOs)
|
||||
implementation(project(":api"))
|
||||
implementation(project(":common"))
|
||||
implementation(project(":database"))
|
||||
implementation(compose.material)
|
||||
implementation(Dependencies.Kotlin.Coroutines.jvmCore)
|
||||
implementation(Dependencies.ThirdParty.kamel)
|
||||
implementation(Dependencies.ThirdParty.Retrofit.moshi)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
compose.desktop { application { mainClass = "dev.msfjarvis.lobsters.ui.Main" } }
|
||||
compose.desktop {
|
||||
application {
|
||||
mainClass = "dev.msfjarvis.lobsters.ui.Main"
|
||||
nativeDistributions {
|
||||
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||||
packageName = "Claw"
|
||||
packageVersion = "1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue