Skip to content

Commit 83dec50

Browse files
committed
Correctly set publication metadata
1 parent 164e83c commit 83dec50

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ fun Project.configurePublishing(repoName: String) {
7777
publications.all {
7878
if (this !is MavenPublication) return@all
7979

80+
val githubOrganization = if (repoName.equals("smithy-kotlin", ignoreCase = true)) "smithy-lang" else "awslabs"
81+
8082
project.afterEvaluate {
8183
pom {
8284
name.set(project.name)
8385
description.set(project.description)
84-
url.set("https://github.com/awslabs/$repoName")
86+
url.set("https://github.com/$githubOrganization/$repoName")
8587
licenses {
8688
license {
8789
name.set("The Apache License, Version 2.0")
@@ -95,9 +97,9 @@ fun Project.configurePublishing(repoName: String) {
9597
}
9698
}
9799
scm {
98-
connection.set("scm:git:git://github.com/awslabs/$repoName.git")
99-
developerConnection.set("scm:git:ssh://github.com/awslabs/$repoName.git")
100-
url.set("https://github.com/awslabs/$repoName")
100+
connection.set("scm:git:git://github.com/$githubOrganization/$repoName.git")
101+
developerConnection.set("scm:git:ssh://github.com/$githubOrganization/$repoName.git")
102+
url.set("https://github.com/$githubOrganization/$repoName")
101103
}
102104

103105
artifact(javadocJar)

0 commit comments

Comments
 (0)