Skip to content

Commit

Permalink
Fixed kotlinx coroutines dependency resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
milux committed Nov 17, 2023
1 parent 48b821e commit f14fc05
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
9 changes: 8 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ subprojects {
"org.jetbrains.kotlin" to mapOf(
"*" to versions.kotlin.get()
),
"org.jetbrains.kotlinx" to mapOf(
Regex("kotlinx-coroutines-.*") to versions.kotlinx.coroutines.get()
),
"com.google.guava" to mapOf(
"guava" to versions.guava.get()
),
Expand All @@ -92,7 +95,11 @@ subprojects {
} ?: pins[requested.name]?.let { pin ->
// Pin only for specific names given in map
useVersion(pin)
}
} ?: pins.entries.firstOrNull { e ->
e.key.let {
it is Regex && it.matches(requested.name)
}
}?.let { useVersion(it.value) }
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ktlint = "0.50.0"

# Kotlin library/compiler version
kotlin = "1.9.20"
kotlinxCoroutines = "1.7.3"
kotlinx-coroutines = "1.7.3"
# HTTP client
ktor = "2.3.5"

Expand Down Expand Up @@ -129,9 +129,9 @@ javax-activation = { group = "com.sun.activation", name = "javax.activation", ve
mapdb = { group = "org.mapdb", name = "mapdb", version.ref = "mapdb" }

# ids-webconsole
kotlinx-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" }
kotlinx-reactive = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-reactive", version.ref = "kotlinxCoroutines" }
kotlinx-reactor = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-reactor", version.ref = "kotlinxCoroutines" }
kotlinx-coroutines = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
kotlinx-reactive = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-reactive", version.ref = "kotlinx-coroutines" }
kotlinx-reactor = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-reactor", version.ref = "kotlinx-coroutines" }
bouncycastle = { group = "org.bouncycastle", name = "bcprov-jdk15on", version.ref = "bouncyCastle" }
bouncycastlePkix = { group = "org.bouncycastle", name = "bcpkix-jdk15to18", version.ref = "bouncyCastle" }
jose4j = { group = "org.bitbucket.b_c", name = "jose4j", version.ref = "jose4j" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ class AcmeClientService : AcmeClient, Runnable, SslContextFactoryReloadableRegis
"ids",
domainKeyPair.private,
"password".toCharArray(),
certificate.certificateChain.toTypedArray<
X509Certificate>()
certificate.certificateChain.toTypedArray<X509Certificate>()
)
store.store(
ksOutputStream,
Expand Down

0 comments on commit f14fc05

Please sign in to comment.