Skip to content

Commit 61bbff5

Browse files
committed
Add githubOrganization param to configurePublishing
1 parent 83dec50 commit 61bbff5

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ fun Project.skipPublishing() {
5454
* Configure publishing for this project. This applies the `maven-publish` and `signing` plugins and configures
5555
* the publications.
5656
* @param repoName the repository name (e.g. `smithy-kotlin`, `aws-sdk-kotlin`, etc)
57+
* @param githubOrganization the name of the GitHub organization that [repoName] is located in
5758
*/
58-
fun Project.configurePublishing(repoName: String) {
59+
fun Project.configurePublishing(repoName: String, githubOrganization: String = "awslabs") {
5960
val project = this
6061
apply(plugin = "maven-publish")
6162

@@ -77,8 +78,6 @@ fun Project.configurePublishing(repoName: String) {
7778
publications.all {
7879
if (this !is MavenPublication) return@all
7980

80-
val githubOrganization = if (repoName.equals("smithy-kotlin", ignoreCase = true)) "smithy-lang" else "awslabs"
81-
8281
project.afterEvaluate {
8382
pom {
8483
name.set(project.name)

0 commit comments

Comments
 (0)