Skip to content

Commit 9705cf4

Browse files
committed
Fix DynamoDbMapper build
1 parent c2aae85 commit 9705cf4

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

hll/dynamodb-mapper/dynamodb-mapper-codegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extra["displayName"] = "AWS :: SDK :: Kotlin :: HLL :: DynamoDbMapper :: Codegen
88
extra["moduleName"] = "aws.sdk.kotlin.hll.dynamodbmapper.codegen"
99

1010
plugins {
11-
alias(libs.plugins.kotlin.jvm)
11+
id(libs.plugins.kotlin.jvm.get().pluginId)
1212
`maven-publish`
1313
}
1414

hll/dynamodb-mapper/dynamodb-mapper-ops-codegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extra["displayName"] = "AWS :: SDK :: Kotlin :: HLL :: DynamoDbMapper :: Codegen
88
extra["moduleName"] = "aws.sdk.kotlin.hll.dynamodbmapper.codegen.ops"
99

1010
plugins {
11-
alias(libs.plugins.kotlin.jvm)
11+
id(libs.plugins.kotlin.jvm.get().pluginId)
1212
}
1313

1414
dependencies {

hll/dynamodb-mapper/dynamodb-mapper-schema-codegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extra["displayName"] = "AWS :: SDK :: Kotlin :: HLL :: DynamoDbMapper :: Codegen
88
extra["moduleName"] = "aws.sdk.kotlin.hll.dynamodbmapper.codegen.schema"
99

1010
plugins {
11-
alias(libs.plugins.kotlin.jvm)
11+
id(libs.plugins.kotlin.jvm.get().pluginId)
1212
`maven-publish`
1313
}
1414

hll/dynamodb-mapper/dynamodb-mapper-schema-generator-plugin/build.gradle.kts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import aws.smithy.kotlin.runtime.InternalApi
2-
import aws.smithy.kotlin.runtime.text.ensureSuffix
31
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
42

53
/*
@@ -90,7 +88,8 @@ tasks.test {
9088
// FIXME Commonize the following functions into the aws-kotlin-repo-tools build-support
9189
val sdkVersion: String by project
9290

93-
@OptIn(InternalApi::class)
91+
private fun String.ensureSuffix(suffix: String): String = if (endsWith(suffix)) this else plus(suffix)
92+
9493
val hllPreviewVersion = if (sdkVersion.contains("-SNAPSHOT")) { // e.g. 1.3.29-beta-SNAPSHOT
9594
sdkVersion
9695
.removeSuffix("-SNAPSHOT")

0 commit comments

Comments
 (0)