Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion codegen/sdk/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ fun fileToService(applyFilters: Boolean): (File) -> AwsService? = { file: File -
.replace("-", "")
.toLowerCase()
.kotlinNamespace()
val packageDescription = "The AWS Kotlin client for $sdkId"

when {
applyFilters && !serviceMembership.isMember(filename, packageName) -> {
Expand Down Expand Up @@ -211,7 +212,7 @@ fun fileToService(applyFilters: Boolean): (File) -> AwsService? = { file: File -
projectionName = filename,
sdkId = sdkId,
version = service.version,
description = description,
description = packageDescription,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class GradleGenerator : KotlinIntegration {
writer.write("description = #S", ctx.settings.pkg.description)
}

writer.write("project.ext.set(#S, #S)", "aws.sdk.id", ctx.settings.sdkId)
writer.write("")

writer.write("val kotlinVersion: String by project")

val allDependencies = delegator.dependencies.mapNotNull { it.properties["dependency"] as? KotlinDependency }.distinct()
Expand Down
6 changes: 6 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ publishing {
url = "https://github.com/awslabs/aws-sdk-kotlin"
}

if (project.hasProperty("aws.sdk.id")) {
properties = [
"aws.sdk.id": (String) project.property("aws.sdk.id")
]
}

artifact(tasks["javadocJar"])
}
}
Expand Down