Skip to content

Commit

Permalink
Update to published cache library
Browse files Browse the repository at this point in the history
  • Loading branch information
schlaubi authored and schlaubi committed Jan 29, 2024
1 parent 2dfc534 commit 26d9308
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
allprojects {
repositories {
// TODO: Remove wants https://github.com/ktorio/ktor/pull/3950 lands
mavenLocal()
maven("https://europe-west3-maven.pkg.dev/mik-music/kord")
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
Expand Down
3 changes: 0 additions & 3 deletions core/src/commonMain/kotlin/Kord.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ import kotlin.contracts.contract
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.channels.Channel as CoroutineChannel

@Deprecated("Use your own logger instead, this will be removed in the future.", level = DeprecationLevel.ERROR)
public val kordLogger: mu.KLogger = mu.KotlinLogging.logger { }

private val logger = KotlinLogging.logger { }

@PublishedApi
Expand Down
2 changes: 1 addition & 1 deletion core/src/commonMain/kotlin/builder/kord/KordBuilder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public abstract class BaseKordBuilder internal constructor(public val token: Str
shards.map {
DefaultGateway {
// Workaround for: https://github.com/ktorio/ktor/pull/3950#issuecomment-1909088751
// client = resources.httpClient
client = resources.httpClient
identifyRateLimiter = rateLimiter
}
}
Expand Down
3 changes: 1 addition & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ kotlinx-serialization = "1.6.2" # https://github.com/Kotlin/kotlinx.serializatio
kotlinx-datetime = "0.5.0" # https://github.com/Kotlin/kotlinx-datetime
kotlin-logging = "6.0.1" # https://github.com/oshai/kotlin-logging
kotlin-logging-old = "3.0.5" # TODO remove after dependency is removed in rest, gateway, voice and core
# This is the specific release supporting native, until we setup CI
kord-cache = "0.5.x-20230806.144015-3" # https://github.com/kordlib/cache
kord-cache = "0.5.0-SNAPSHOT" # https://github.com/kordlib/cache

# implementation dependencies
kotlin-node = "18.16.12-pre.619" # https://github.com/JetBrains/kotlin-wrappers
Expand Down
7 changes: 5 additions & 2 deletions samples/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.konan.target.KonanTarget

plugins {
`kord-internal-multiplatform-module`
Expand All @@ -22,8 +23,10 @@ kotlin {
}

targets.withType<KotlinNativeTarget> {
binaries.executable {
entryPoint = "dev.kord.voice.test.main"
if (konanTarget != KonanTarget.MINGW_X64) {
binaries.executable {
entryPoint = "dev.kord.voice.test.main"
}
}
}

Expand Down

0 comments on commit 26d9308

Please sign in to comment.