From efa4e0b98250fc37391565d650f37501eb4061a7 Mon Sep 17 00:00:00 2001 From: Matas Lauzadis Date: Wed, 25 Sep 2024 16:21:36 -0400 Subject: [PATCH] Expand allow-list, only apply signing plugin when required, add project group ID to log message --- .../main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt b/build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt index 7a722f9..452e5d8 100644 --- a/build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt +++ b/build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt @@ -34,6 +34,14 @@ private val ALLOWED_PUBLICATIONS = listOf( "android", // aws-crt-kotlin "codegen", "codegen-testutils", + + // aws-sdk-kotlin:hll + "hll-codegen", + "dynamodb-mapper-codegen", + "dynamodb-mapper-schema-generator-plugin", + "dynamodb-mapper-schema-codegen", + "pluginMaven", + "dynamodb-mapper-schema-generatorPluginMarkerMaven" ) /** @@ -51,7 +59,6 @@ fun Project.skipPublishing() { fun Project.configurePublishing(repoName: String) { val project = this apply(plugin = "maven-publish") - apply(plugin = "signing") // FIXME: create a real "javadoc" JAR from Dokka output val javadocJar = tasks.register("emptyJar") { @@ -99,6 +106,7 @@ fun Project.configurePublishing(repoName: String) { } if (project.hasProperty(SIGNING_KEY_PROP) && project.hasProperty(SIGNING_PASSWORD_PROP)) { + apply(plugin = "signing") extensions.configure { useInMemoryPgpKeys( project.property(SIGNING_KEY_PROP) as String, @@ -119,7 +127,7 @@ fun Project.configurePublishing(repoName: String) { onlyIf { isAvailableForPublication(project, publication).also { if (!it) { - logger.warn("Skipping publication, project=${project.name}; publication=${publication.name}") + logger.warn("Skipping publication, project=${project.name}; publication=${publication.name}; group=${publication.groupId}") } } }