Skip to content

Commit c6fdc8e

Browse files
committed
Merge branch 'main' of github.com:awslabs/aws-kotlin-repo-tools into kn-main
2 parents 492ec38 + 2090268 commit c6fdc8e

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This repository contains shared tooling for AWS Kotlin repositories:
44

55
* `awslabs/aws-sdk-kotlin`
6-
* `awslabs/smithy-kotlin`
6+
* `smithy-lang/smithy-kotlin`
77
* `awslabs/aws-crt-kotlin`
88

99
It contains shared custom Gradle plugins and build logic used to build and release those repositories.

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,16 @@ fun Project.skipPublishing() {
5959
* Configure publishing for this project. This applies the `maven-publish` and `signing` plugins and configures
6060
* the publications.
6161
* @param repoName the repository name (e.g. `smithy-kotlin`, `aws-sdk-kotlin`, etc)
62+
* @param githubOrganization the name of the GitHub organization that [repoName] is located in
6263
*/
63-
fun Project.configurePublishing(repoName: String) {
64+
fun Project.configurePublishing(repoName: String, githubOrganization: String = "awslabs") {
6465
val project = this
6566
apply(plugin = "maven-publish")
6667

6768
// FIXME: create a real "javadoc" JAR from Dokka output
6869
val javadocJar = tasks.register<Jar>("emptyJar") {
6970
archiveClassifier.set("javadoc")
71+
destinationDirectory.set(layout.buildDirectory.dir("libs"))
7072
from()
7173
}
7274

@@ -85,7 +87,7 @@ fun Project.configurePublishing(repoName: String) {
8587
pom {
8688
name.set(project.name)
8789
description.set(project.description)
88-
url.set("https://github.com/awslabs/$repoName")
90+
url.set("https://github.com/$githubOrganization/$repoName")
8991
licenses {
9092
license {
9193
name.set("The Apache License, Version 2.0")
@@ -99,9 +101,9 @@ fun Project.configurePublishing(repoName: String) {
99101
}
100102
}
101103
scm {
102-
connection.set("scm:git:git://github.com/awslabs/$repoName.git")
103-
developerConnection.set("scm:git:ssh://github.com/awslabs/$repoName.git")
104-
url.set("https://github.com/awslabs/$repoName")
104+
connection.set("scm:git:git://github.com/$githubOrganization/$repoName.git")
105+
developerConnection.set("scm:git:ssh://github.com/$githubOrganization/$repoName.git")
106+
url.set("https://github.com/$githubOrganization/$repoName")
105107
}
106108

107109
artifact(javadocJar)

build-plugins/smithy-build/src/main/kotlin/aws/sdk/kotlin/gradle/codegen/dsl/SmithyKotlinPluginSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.util.*
1212

1313
/**
1414
* Container for `smithy-kotlin` plugin settings
15-
* See https://github.com/awslabs/smithy-kotlin/blob/main/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/KotlinSettings.kt
15+
* See https://github.com/smithy-lang/smithy-kotlin/blob/main/codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/KotlinSettings.kt
1616
*/
1717
open class SmithyKotlinApiSettings : ToNode {
1818
var visibility: String? = null

0 commit comments

Comments
 (0)