Skip to content

Commit 507f673

Browse files
authored
chore: update kotlin to 1.8.22; kotlinx.coroutines to 1.7.3 (#909)
1 parent 03aa83f commit 507f673

File tree

9 files changed

+20
-33
lines changed

9 files changed

+20
-33
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "1cd85099-9aa4-492a-a4b8-72e01da5d633",
3+
"type": "misc",
4+
"description": "Upgrade Kotlin to 1.8.22"
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "70eb72c8-2b3d-4853-8d6f-98ea28474eb6",
3+
"type": "misc",
4+
"description": "Upgrade kotlinx.coroutines to 1.7.3"
5+
}

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/core/KotlinDependency.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private fun getDefaultRuntimeVersion(): String {
3434
// publishing info
3535
const val RUNTIME_GROUP: String = "aws.smithy.kotlin"
3636
val RUNTIME_VERSION: String = System.getProperty("smithy.kotlin.codegen.clientRuntimeVersion", getDefaultRuntimeVersion())
37-
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "1.8.10")
37+
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "1.8.22")
3838

3939
enum class SourceSet {
4040
CommonMain,

gradle.properties

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@ kotlin.incremental.js=true
33
kotlin.incremental.multiplatform=true
44
kotlin.mpp.stability.nowarn=true
55
kotlin.native.ignoreDisabledTargets=true
6-
kotlin.mpp.enableCompatibilityMetadataVariant=true
76

87
# SDK
9-
sdkVersion=0.24.1-SNAPSHOT
8+
sdkVersion=0.25.0-SNAPSHOT
109

1110
# kotlin
12-
kotlinVersion=1.8.10
11+
kotlinVersion=1.8.22
1312
dokkaVersion=1.7.10
1413

1514
# kotlin libraries
16-
coroutinesVersion=1.6.4
15+
coroutinesVersion=1.7.3
1716
ktorVersion=2.2.2
1817
atomicFuVersion=0.19.0
1918
kotlinxSerializationVersion=1.4.1
@@ -42,4 +41,4 @@ kamlVersion=0.49.0
4241
slf4jVersion=2.0.6
4342

4443
# crt
45-
crtKotlinVersion=0.6.8
44+
crtKotlinVersion=0.7.0-SNAPSHOT

runtime/build.gradle.kts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,3 @@ subprojects {
8888
dokkaPlugin(project(":dokka-smithy"))
8989
}
9090
}
91-
92-
task<org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport>("rootAllTest") {
93-
destinationDir = File(project.buildDir, "reports/tests/rootAllTest")
94-
val rootAllTest = this
95-
subprojects {
96-
afterEvaluate {
97-
if (tasks.findByName("allTests") != null) {
98-
val provider = tasks.named("allTests")
99-
val allTestsTaskProvider = provider as TaskProvider<org.jetbrains.kotlin.gradle.testing.internal.KotlinTestReport>
100-
rootAllTest.addChild(allTestsTaskProvider)
101-
rootAllTest.dependsOn(allTestsTaskProvider)
102-
}
103-
}
104-
}
105-
106-
beforeEvaluate {
107-
project.gradle.taskGraph.whenReady {
108-
rootAllTest.maybeOverrideReporting(this)
109-
}
110-
}
111-
}

runtime/crt-util/common/src/aws/smithy/kotlin/runtime/crt/ReadChannelBodyStream.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public class ReadChannelBodyStream(
6969
override fun sendRequestBody(buffer: MutableBuffer): Boolean =
7070
doSendRequestBody(buffer).also { if (it) producerJob.complete() }
7171

72-
@OptIn(ExperimentalCoroutinesApi::class)
72+
@OptIn(DelicateCoroutinesApi::class)
7373
private fun doSendRequestBody(buffer: MutableBuffer): Boolean {
7474
// ensure the request context hasn't been cancelled
7575
callContext.ensureActive()

runtime/protocol/http-client-engines/http-client-engine-crt/common/src/aws/smithy/kotlin/runtime/http/engine/crt/SdkStreamResponseHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import kotlin.coroutines.CoroutineContext
2626
* Implements the CRT stream response interface which proxies the response from the CRT to the SDK
2727
* @param conn The HTTP connection used to make the request. Will be closed when the response handler completes
2828
*/
29-
@OptIn(ExperimentalCoroutinesApi::class)
29+
@OptIn(ExperimentalCoroutinesApi::class, DelicateCoroutinesApi::class)
3030
internal class SdkStreamResponseHandler(
3131
private val conn: HttpClientConnection,
3232
private val callContext: CoroutineContext,

runtime/runtime-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ buildscript {
1515
}
1616

1717
plugins {
18-
kotlin("plugin.serialization") version "1.8.0"
18+
kotlin("plugin.serialization") version "1.8.21"
1919
}
2020

2121
description = "Core runtime for Smithy clients and services generated by smithy-kotlin"

runtime/runtime-core/jvm/test/aws/smithy/kotlin/runtime/retries/impl/AdaptiveRetryIntegrationTest.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ import kotlin.test.Test
1515
import kotlin.test.assertEquals
1616
import kotlin.time.Duration.Companion.seconds
1717
import kotlin.time.ExperimentalTime
18-
import kotlin.time.TimeSource
1918

2019
private const val TOLERANCE = 0.0000005
2120

2221
@OptIn(ExperimentalTime::class, ExperimentalCoroutinesApi::class)
2322
class AdaptiveRetryIntegrationTest {
2423
@Test
2524
fun testCubicCases() = runTest {
26-
val timeSource = testTimeSource as TimeSource.WithComparableMarks
25+
val timeSource = testTimeSource
2726
val testCases = adaptiveRetryCubicTestCases.deserializeYaml(CubicTestCase.serializer())
2827

2928
testCases.forEach { (name, tc) ->
@@ -68,7 +67,7 @@ class AdaptiveRetryIntegrationTest {
6867

6968
@Test
7069
fun testE2eCases() = runTest {
71-
val timeSource = testTimeSource as TimeSource.WithComparableMarks
70+
val timeSource = testTimeSource
7271
val testCases = adaptiveRetryE2eTestCases.deserializeYaml(E2eTestCase.serializer())
7372
val config = AdaptiveRateLimiter.Config.Default
7473
val rateMeasurer = AdaptiveRateMeasurer(config, timeSource)

0 commit comments

Comments
 (0)