Skip to content

Commit a960459

Browse files
authored
misc: Upgrade to Kotlin 2.0.0 (#107)
1 parent c153a28 commit a960459

36 files changed

+1110
-59
lines changed

.brazil.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
22
"dependencies": {
3+
"org.jetbrains.kotlin:kotlin-stdlib-common:2.0.*": "KotlinStdlibCommon-2.x",
4+
"org.jetbrains.kotlin:kotlin-stdlib:2.0.*": "KotlinStdlib-2.x",
5+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.*": "KotlinxCoroutinesCoreJvm-1.8.x",
6+
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.*": "KotlinxCoroutinesCore-1.8.x",
7+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.8.*": "KotlinxCoroutinesJdk8-1.8.x",
8+
"software.amazon.awssdk.crt:aws-crt:0.*": "Aws-crt-java-1.0.x",
9+
310
"org.jetbrains.kotlin:kotlin-stdlib-common:1.9.*": "KotlinStdlibCommon-1.9.x",
411
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.*": "KotlinStdlibJdk8-1.9.x",
512
"org.jetbrains.kotlin:kotlin-stdlib:1.9.*": "KotlinStdlib-1.9.x",
6-
"org.jetbrains.kotlinx:atomicfu-jvm:0.23.1": "AtomicfuJvm-0.23.1",
7-
"org.jetbrains.kotlinx:atomicfu:0.23.1": "Atomicfu-0.23.1",
813
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.*": "KotlinxCoroutinesCoreJvm-1.7.x",
914
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.*": "KotlinxCoroutinesCore-1.7.x",
10-
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.7.*": "KotlinxCoroutinesJdk8-1.7.x",
11-
"software.amazon.awssdk.crt:aws-crt:0.*": "Aws-crt-java-1.0.x"
15+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.7.*": "KotlinxCoroutinesJdk8-1.7.x"
1216
},
1317
"packageHandlingRules": {
1418
"versioning": {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "9f0978c5-7652-4cef-9d03-6aab441c1d8d",
3+
"type": "misc",
4+
"description": "Upgrade to Kotlin 2.0.0"
5+
}

aws-crt-kotlin/api/aws-crt-kotlin.api

Lines changed: 998 additions & 0 deletions
Large diffs are not rendered by default.

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/CachedCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ package aws.sdk.kotlin.crt.auth.credentials
1818
* @return the newly-constructed credentials provider
1919
*/
2020
public expect class CachedCredentialsProvider internal constructor(builder: CachedCredentialsProviderBuilder) : CredentialsProvider {
21-
public companion object
21+
public companion object { }
22+
23+
override fun close()
24+
override suspend fun getCredentials(): Credentials
25+
override suspend fun waitForShutdown()
2226
}
2327

2428
public class CachedCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/DefaultChainCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ import aws.sdk.kotlin.crt.io.ClientBootstrap
2424
*/
2525
public expect class DefaultChainCredentialsProvider internal constructor(builder: DefaultChainCredentialsProviderBuilder) : CredentialsProvider {
2626

27-
public companion object
27+
public companion object { }
28+
29+
override fun close()
30+
override suspend fun getCredentials(): Credentials
31+
override suspend fun waitForShutdown()
2832
}
2933

3034
public class DefaultChainCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/EcsCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ public expect class EcsCredentialsProvider
1515
internal constructor(
1616
builder: EcsCredentialsProviderBuilder,
1717
) : CredentialsProvider {
18-
public companion object
18+
public companion object { }
19+
20+
override fun close()
21+
override suspend fun getCredentials(): Credentials
22+
override suspend fun waitForShutdown()
1923
}
2024

2125
public class EcsCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/ProfileCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ public expect class ProfileCredentialsProvider
1515
internal constructor(
1616
builder: ProfileCredentialsProviderBuilder,
1717
) : CredentialsProvider {
18-
public companion object
18+
public companion object { }
19+
20+
override fun close()
21+
override suspend fun getCredentials(): Credentials
22+
override suspend fun waitForShutdown()
1923
}
2024

2125
public class ProfileCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/StaticCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ package aws.sdk.kotlin.crt.auth.credentials
99
* A credentials provider for a fixed set of credentials
1010
*/
1111
public expect class StaticCredentialsProvider internal constructor(builder: StaticCredentialsProviderBuilder) : CredentialsProvider {
12-
public companion object
12+
public companion object { }
13+
14+
override fun close()
15+
override suspend fun getCredentials(): Credentials
16+
override suspend fun waitForShutdown()
1317
}
1418

1519
public class StaticCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/StsAssumeRoleCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ public expect class StsAssumeRoleCredentialsProvider
1515
internal constructor(
1616
builder: StsAssumeRoleCredentialsProviderBuilder,
1717
) : CredentialsProvider {
18-
public companion object
18+
public companion object { }
19+
20+
override fun close()
21+
override suspend fun getCredentials(): Credentials
22+
override suspend fun waitForShutdown()
1923
}
2024

2125
public class StsAssumeRoleCredentialsProviderBuilder {

aws-crt-kotlin/common/src/aws/sdk/kotlin/crt/auth/credentials/StsWebIdentityCredentialsProvider.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ public expect class StsWebIdentityCredentialsProvider
1616
internal constructor(
1717
builder: StsWebIdentityCredentialsProviderBuilder,
1818
) : CredentialsProvider {
19-
public companion object
19+
public companion object { }
20+
21+
override fun close()
22+
override suspend fun getCredentials(): Credentials
23+
override suspend fun waitForShutdown()
2024
}
2125

2226
public class StsWebIdentityCredentialsProviderBuilder {

0 commit comments

Comments
 (0)