diff --git a/build.gradle.kts b/build.gradle.kts index f55db01c..f6266000 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,4 @@ +import org.gradle.internal.extensions.stdlib.capitalized import org.jreleaser.model.Active plugins { @@ -7,6 +8,8 @@ plugins { id("api-models-aws.publishing-conventions") } +description = "This module contains the Smithy model (JSON AST) for all AWS services." +extra["displayName"] = "Software :: Amazon :: API :: Models" subprojects { afterEvaluate { apply { diff --git a/buildSrc/src/main/kotlin/api-models-aws.model-conventions.gradle.kts b/buildSrc/src/main/kotlin/api-models-aws.model-conventions.gradle.kts index e65cf91c..86578c02 100644 --- a/buildSrc/src/main/kotlin/api-models-aws.model-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/api-models-aws.model-conventions.gradle.kts @@ -1,3 +1,5 @@ +import org.gradle.internal.extensions.stdlib.capitalized + plugins { `java-library` id("software.amazon.smithy.gradle.smithy-jar") @@ -12,6 +14,9 @@ repositories { //// Workaround per: https://github.com/gradle/gradle/issues/15383 val Project.libs get() = the() +description = "This module contains the Smithy model (JSON AST) for ${name.capitalized()}." +extra["displayName"] = "Software :: Amazon :: API :: Models :: ${name.capitalized()}" + dependencies { implementation(libs.smithy.aws.cloudformation.traits) implementation(libs.smithy.aws.endpoints) diff --git a/buildSrc/src/main/kotlin/api-models-aws.publishing-conventions.gradle.kts b/buildSrc/src/main/kotlin/api-models-aws.publishing-conventions.gradle.kts index 57027df7..a9736216 100644 --- a/buildSrc/src/main/kotlin/api-models-aws.publishing-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/api-models-aws.publishing-conventions.gradle.kts @@ -21,6 +21,33 @@ publishing { } else { from(components["javaPlatform"]) } + + afterEvaluate { + pom { + name.set(project.ext["displayName"].toString()) + description.set(project.description) + url.set("https://github.com/aws/api-models-aws") + licenses { + license { + name.set("Apache License 2.0") + url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") + distribution.set("repo") + } + } + developers { + developer { + id.set("aws") + name.set("AWS") + organization.set("Amazon Web Services") + organizationUrl.set("https://aws.amazon.com") + roles.add("developer") + } + } + scm { + url.set("https://github.com/aws/api-models-aws.git") + } + } + } } } -} \ No newline at end of file +}