diff --git a/README.md b/README.md index d018afc..41cae10 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ This repository contains shared tooling for AWS Kotlin repositories: * `awslabs/aws-sdk-kotlin` -* `awslabs/smithy-kotlin` +* `smithy-lang/smithy-kotlin` * `awslabs/aws-crt-kotlin` It contains shared custom Gradle plugins and build logic used to build and release those repositories. 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 a5c35eb..d35a8ff 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 @@ -54,8 +54,9 @@ fun Project.skipPublishing() { * Configure publishing for this project. This applies the `maven-publish` and `signing` plugins and configures * the publications. * @param repoName the repository name (e.g. `smithy-kotlin`, `aws-sdk-kotlin`, etc) + * @param githubOrganization the name of the GitHub organization that [repoName] is located in */ -fun Project.configurePublishing(repoName: String) { +fun Project.configurePublishing(repoName: String, githubOrganization: String = "awslabs") { val project = this apply(plugin = "maven-publish") @@ -81,7 +82,7 @@ fun Project.configurePublishing(repoName: String) { pom { name.set(project.name) description.set(project.description) - url.set("https://github.com/awslabs/$repoName") + url.set("https://github.com/$githubOrganization/$repoName") licenses { license { name.set("The Apache License, Version 2.0") @@ -95,9 +96,9 @@ fun Project.configurePublishing(repoName: String) { } } scm { - connection.set("scm:git:git://github.com/awslabs/$repoName.git") - developerConnection.set("scm:git:ssh://github.com/awslabs/$repoName.git") - url.set("https://github.com/awslabs/$repoName") + connection.set("scm:git:git://github.com/$githubOrganization/$repoName.git") + developerConnection.set("scm:git:ssh://github.com/$githubOrganization/$repoName.git") + url.set("https://github.com/$githubOrganization/$repoName") } artifact(javadocJar) diff --git a/build-plugins/smithy-build/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/dsl/SmithyKotlinPluginSettings.kt b/build-plugins/smithy-build/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/dsl/SmithyKotlinPluginSettings.kt index 31c6119..fb6e168 100644 --- a/build-plugins/smithy-build/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/dsl/SmithyKotlinPluginSettings.kt +++ b/build-plugins/smithy-build/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/dsl/SmithyKotlinPluginSettings.kt @@ -12,7 +12,7 @@ import java.util.* /** * Container for `smithy-kotlin` plugin settings - * See https://github.com/awslabs/smithy-kotlin/blob/main/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/KotlinSettings.kt + * See https://github.com/smithy-lang/smithy-kotlin/blob/main/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/KotlinSettings.kt */ open class SmithyKotlinApiSettings : ToNode { var visibility: String? = null