File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
dynamodb-mapper/dynamodb-mapper-schema-generator-plugin Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
66import aws.sdk.kotlin.gradle.dsl.configurePublishing
77import aws.sdk.kotlin.gradle.kmp.*
8- import aws.smithy.kotlin.runtime.InternalApi
9- import aws.smithy.kotlin.runtime.text.ensureSuffix
108import org.jetbrains.kotlin.gradle.dsl.JvmTarget
119
1210description = " High-level libraries for the AWS SDK for Kotlin"
@@ -34,7 +32,8 @@ val optinAnnotations = listOf(
3432 " kotlin.RequiresOptIn" ,
3533)
3634
37- @OptIn(InternalApi ::class )
35+ private fun String.ensureSuffix (suffix : String ): String = if (endsWith(suffix)) this else plus(suffix)
36+
3837val hllPreviewVersion = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
3938 sdkVersion
4039 .removeSuffix(" -SNAPSHOT" )
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ tasks.test {
9191// FIXME Commonize the following functions into the aws-kotlin-repo-tools build-support
9292val sdkVersion: String by project
9393
94- @OptIn(InternalApi ::class )
94+ private fun String.ensureSuffix (suffix : String ): String = if (endsWith(suffix)) this else plus(suffix)
95+
9596val hllPreviewVersion = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
9697 sdkVersion
9798 .removeSuffix(" -SNAPSHOT" )
You can’t perform that action at this time.
0 commit comments