Skip to content

Commit ffb98c0

Browse files
authored
chore: upgrade kotlin 1.6.20; gradle 7.4.2; bump deps (#622)
1 parent 1522aa7 commit ffb98c0

File tree

10 files changed

+34
-22
lines changed

10 files changed

+34
-22
lines changed

.changes/.gitkeep

Whitespace-only changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"id": "84133345-9651-4fdd-87ff-bbd6a331fe60",
3+
"type": "misc",
4+
"description": "upgrade kotlin to 1.6.21 and other deps to latest"
5+
}

gradle.properties

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,43 @@ kotlin.incremental.multiplatform=true
44
kotlin.mpp.stability.nowarn=true
55
kotlin.native.ignoreDisabledTargets=true
66

7+
# FIXME - see https://youtrack.jetbrains.com/issue/KTIJ-21583/HMPP-1-6-20-breaks-autocomplete-in-multiplatform-composite-build
8+
kotlin.mpp.hierarchicalStructureSupport=false
9+
710
# SDK
811
sdkVersion=0.9.3-SNAPSHOT
912

1013
# kotlin
11-
kotlinVersion=1.6.10
12-
dokkaVersion=1.6.10
14+
kotlinVersion=1.6.21
15+
dokkaVersion=1.6.21
1316

1417
# kotlin libraries
15-
coroutinesVersion=1.6.0
16-
ktorVersion=1.6.7
17-
atomicFuVersion=0.17.0
18-
kotlinxSerializationVersion=1.3.0
18+
coroutinesVersion=1.6.1
19+
ktorVersion=1.6.8
20+
atomicFuVersion=0.17.2
21+
kotlinxSerializationVersion=1.3.3
1922
jsoupVersion=1.14.3
2023

2124
# codegen
2225
smithyVersion=1.17.0
2326
smithyGradleVersion=0.5.3
2427

2528
# testing/utility
26-
junitVersion=5.6.2
27-
ktlintVersion=0.42.1
28-
kotestVersion=4.6.0
29-
kotlinCompileTestingVersion=1.4.6
30-
jacocoVersion=0.8.7
31-
kotlinxBenchmarkVersion=0.3.1
29+
junitVersion=5.8.2
30+
ktlintVersion=0.45.2
31+
kotestVersion=5.3.0
32+
kotlinCompileTestingVersion=1.4.8
33+
jacocoVersion=0.8.8
34+
kotlinxBenchmarkVersion=0.4.2
3235

3336
# serialization
3437
kamlVersion=0.36.0
3538

3639
# logging
37-
kotlinLoggingVersion=2.0.3
40+
kotlinLoggingVersion=2.1.21
3841

3942
# logging - JVM
40-
slf4jVersion=1.7.30
43+
slf4jVersion=1.7.36
4144

4245
# crt
43-
crtKotlinVersion=0.5.4
46+
crtKotlinVersion=0.5.4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

ktlint-rules/src/main/kotlin/software/aws/ktlint/rules/CopyrightHeaderRule.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ package software.aws.ktlint.rules
33
import com.pinterest.ktlint.core.Rule
44
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
55

6-
class CopyrightHeaderRule : Rule("copyright-header"), Rule.Modifier.RestrictToRoot {
6+
class CopyrightHeaderRule : Rule(
7+
"copyright-header",
8+
visitorModifiers = setOf(
9+
VisitorModifier.RunOnRootNodeOnly
10+
)
11+
) {
712
companion object {
813
private val header = """
914
/*

runtime/runtime-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55

66
plugins {
7-
kotlin("plugin.serialization") version "1.6.10"
7+
kotlin("plugin.serialization") version "1.6.21"
88
}
99

1010
description = "Client runtime for Smithy services generated by smithy-kotlin"

runtime/serde/serde-form-url/common/src/aws/smithy/kotlin/runtime/serde/formurl/FormUrlSerializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private class FormUrlStructSerializer(
8181
}
8282

8383
private fun writeField(descriptor: SdkFieldDescriptor, block: () -> Unit) {
84-
if (buffer.writePosition> 0u) {
84+
if (buffer.writePosition > 0u) {
8585
buffer.write("&")
8686
}
8787
if (prefix.isNotBlank()) buffer.write(prefix)

runtime/utils/common/src/aws/smithy/kotlin/runtime/util/Annotations.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ package aws.smithy.kotlin.runtime.util
1717
level = RequiresOptIn.Level.ERROR,
1818
message = "This API is internal to smithy-client-rt and should not be used. It could be removed or changed without notice."
1919
)
20-
@Experimental(level = Experimental.Level.ERROR)
2120
@Target(
2221
AnnotationTarget.CLASS,
2322
AnnotationTarget.TYPEALIAS,

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.6.10")
37+
val KOTLIN_COMPILER_VERSION: String = System.getProperty("smithy.kotlin.codegen.kotlinCompilerVersion", "1.6.21")
3838

3939
enum class SourceSet {
4040
CommonMain,

smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/model/OperationNormalizer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ object OperationNormalizer {
9494
"""renaming operation inputs or outputs will result in a conflict for:
9595
|$formatted
9696
|Fix by supplying a manual rename customization for the shapes listed.
97-
""".trimMargin()
97+
""".trimMargin()
9898
)
9999
}
100100
}

0 commit comments

Comments
 (0)