File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
dynamodb-mapper/dynamodb-mapper-schema-generator-plugin Expand file tree Collapse file tree 2 files changed +4
-6
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 1- import aws.smithy.kotlin.runtime.InternalApi
2- import aws.smithy.kotlin.runtime.text.ensureSuffix
31import 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
9189val 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+
9493val hllPreviewVersion = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
9594 sdkVersion
9695 .removeSuffix(" -SNAPSHOT" )
You can’t perform that action at this time.
0 commit comments