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 @@ -34,7 +34,7 @@ val optinAnnotations = listOf(
3434)
3535
3636@OptIn(InternalApi ::class )
37- fun getHllPreviewVersion () = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
37+ val hllPreviewVersion = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
3838 sdkVersion
3939 .removeSuffix(" -SNAPSHOT" )
4040 .ensureSuffix(" -beta-SNAPSHOT" )
@@ -44,7 +44,7 @@ fun getHllPreviewVersion() = if (sdkVersion.contains("-SNAPSHOT")) { // e.g. 1.3
4444
4545subprojects {
4646 group = " aws.sdk.kotlin"
47- version = getHllPreviewVersion()
47+ version = hllPreviewVersion
4848 configurePublishing(" aws-sdk-kotlin" )
4949}
5050
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ tasks.test {
9191val sdkVersion: String by project
9292
9393@OptIn(InternalApi ::class )
94- fun getHllPreviewVersion () = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
94+ val hllPreviewVersion = if (sdkVersion.contains(" -SNAPSHOT" )) { // e.g. 1.3.29-beta-SNAPSHOT
9595 sdkVersion
9696 .removeSuffix(" -SNAPSHOT" )
9797 .ensureSuffix(" -beta-SNAPSHOT" )
@@ -111,7 +111,7 @@ val generateSdkVersionFile by tasks.registering {
111111 outputs.file(versionFile)
112112 sourceSets.main.get().output.dir(resourcesDir)
113113 doLast {
114- versionFile.writeText(getHllPreviewVersion() )
114+ versionFile.writeText(hllPreviewVersion )
115115 }
116116}
117117
You can’t perform that action at this time.
0 commit comments