Skip to content

Commit 28754dc

Browse files
authored
misc: expand allow-list, apply signing plugin only when required (#48)
1 parent c09b6ce commit 28754dc

File tree

1 file changed

+8
-2
lines changed
  • build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl

1 file changed

+8
-2
lines changed

build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ private val ALLOWED_PUBLICATIONS = listOf(
3434
"android", // aws-crt-kotlin
3535
"codegen",
3636
"codegen-testutils",
37+
38+
// aws-sdk-kotlin:hll
39+
"hll-codegen",
40+
"dynamodb-mapper-codegen",
41+
"dynamodb-mapper-schema-generator-plugin",
42+
"dynamodb-mapper-schema-codegen",
3743
)
3844

3945
/**
@@ -51,7 +57,6 @@ fun Project.skipPublishing() {
5157
fun Project.configurePublishing(repoName: String) {
5258
val project = this
5359
apply(plugin = "maven-publish")
54-
apply(plugin = "signing")
5560

5661
// FIXME: create a real "javadoc" JAR from Dokka output
5762
val javadocJar = tasks.register<Jar>("emptyJar") {
@@ -99,6 +104,7 @@ fun Project.configurePublishing(repoName: String) {
99104
}
100105

101106
if (project.hasProperty(SIGNING_KEY_PROP) && project.hasProperty(SIGNING_PASSWORD_PROP)) {
107+
apply(plugin = "signing")
102108
extensions.configure<SigningExtension> {
103109
useInMemoryPgpKeys(
104110
project.property(SIGNING_KEY_PROP) as String,
@@ -119,7 +125,7 @@ fun Project.configurePublishing(repoName: String) {
119125
onlyIf {
120126
isAvailableForPublication(project, publication).also {
121127
if (!it) {
122-
logger.warn("Skipping publication, project=${project.name}; publication=${publication.name}")
128+
logger.warn("Skipping publication, project=${project.name}; publication=${publication.name}; group=${publication.groupId}")
123129
}
124130
}
125131
}

0 commit comments

Comments
 (0)