Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce0203 committed Aug 7, 2023
1 parent 47f7087 commit 464391b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import korlibs.korge.gradle.configureAutoVersions
plugins {
@Suppress("DSL_SCOPE_VIOLATION")
alias(libs.plugins.korge) apply false
kotlin("multiplatform")
}

configureAutoVersions()
Expand Down
21 changes: 17 additions & 4 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ korge {
}

kotlin {
targets {
this
}
sourceSets {
val commonMain by getting {
dependencies {
Expand Down Expand Up @@ -40,11 +43,21 @@ kotlin {
api(libs.logback)
}
}
val linuxX64Main by getting {
dependencies {
api(libs.ktor.client.cio)
api(libs.logback)
val linuxArm64Main by getting {
configurations.all {
println(this.name)
exclude(libs.kotlinx.uuid.asProvider())
exclude(libs.kotlinx.serialization)
exclude(libs.koin)
exclude(libs.ktor.client.auth)
exclude(libs.ktor.client.content.negotation)
exclude(libs.ktor.serialization.kotlinx.json)
}
}
}
}

fun Configuration.exclude(provider: Provider<MinimalExternalModuleDependency>) {
val module = provider.get().module
exclude(group = module.group, module = module.name)
}

0 comments on commit 464391b

Please sign in to comment.