fixup! Bump various dependencies
This commit is contained in:
parent
f2d5687a5f
commit
dba5313c74
1 changed files with 4 additions and 28 deletions
|
@ -1,38 +1,15 @@
|
||||||
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
alias(libs.plugins.kotlin.jvm)
|
||||||
id("org.jetbrains.compose")
|
alias(libs.plugins.compose)
|
||||||
|
alias(libs.plugins.jetbrainsCompose)
|
||||||
java
|
java
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.wbrawner.pihelper"
|
group = "com.wbrawner.pihelper"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0-SNAPSHOT"
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
||||||
google()
|
|
||||||
}
|
|
||||||
|
|
||||||
val osName = System.getProperty("os.name")
|
|
||||||
val targetOs = when {
|
|
||||||
osName == "Mac OS X" -> "macos"
|
|
||||||
osName.startsWith("Win") -> "windows"
|
|
||||||
osName.startsWith("Linux") -> "linux"
|
|
||||||
else -> error("Unsupported OS: $osName")
|
|
||||||
}
|
|
||||||
|
|
||||||
val targetArch = when (val osArch = System.getProperty("os.arch")) {
|
|
||||||
"x86_64", "amd64" -> "x64"
|
|
||||||
"aarch64" -> "arm64"
|
|
||||||
else -> error("Unsupported arch: $osArch")
|
|
||||||
}
|
|
||||||
|
|
||||||
val skikoVersion = "0.7.77" // or any more recent version
|
|
||||||
val target = "${targetOs}-${targetArch}"
|
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Note, if you develop a library, you should use compose.desktop.common.
|
// Note, if you develop a library, you should use compose.desktop.common.
|
||||||
// compose.desktop.currentOs should be used in launcher-sourceSet
|
// compose.desktop.currentOs should be used in launcher-sourceSet
|
||||||
|
@ -40,9 +17,8 @@ dependencies {
|
||||||
// With compose.desktop.common you will also lose @Preview functionality
|
// With compose.desktop.common you will also lose @Preview functionality
|
||||||
implementation(project(":shared"))
|
implementation(project(":shared"))
|
||||||
implementation(compose.desktop.currentOs)
|
implementation(compose.desktop.currentOs)
|
||||||
// implementation("org.jetbrains.skiko:skiko-awt-runtime-$target:$skikoVersion")
|
|
||||||
implementation(libs.kotlinx.coroutines.jvm)
|
implementation(libs.kotlinx.coroutines.jvm)
|
||||||
implementation("ch.qos.logback:logback-classic:1.4.5")
|
implementation(libs.logback.classic)
|
||||||
}
|
}
|
||||||
|
|
||||||
compose.desktop {
|
compose.desktop {
|
||||||
|
|
Loading…
Reference in a new issue