Skip to content

Commit d79bc51

Browse files
committed
Add publish tasks
1 parent 287cb8e commit d79bc51

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

build.gradle.kts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
* SPDX-License-Identifier: Apache-2.0
44
*/
5-
import aws.sdk.kotlin.gradle.dsl.configureJReleaser
65
import aws.sdk.kotlin.gradle.dsl.configureLinting
76
import aws.sdk.kotlin.gradle.dsl.configureMinorVersionStrategyRules
87
import aws.sdk.kotlin.gradle.util.typedProp
98
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
9+
import aws.sdk.kotlin.gradle.publishing.SonatypeCentralPortalPublishTask
10+
import aws.sdk.kotlin.gradle.publishing.SonatypeCentralPortalWaitForPublicationTask
1011

1112
buildscript {
1213
// NOTE: buildscript classpath for the root project is the parent classloader for the subprojects, we
@@ -30,7 +31,7 @@ buildscript {
3031
Version bumping the SDK to 1.5.x in repo tools broke our buildscript classpath:
3132
java.lang.NoSuchMethodError: 'void kotlinx.coroutines.CancellableContinuation.resume(java.lang.Object, kotlin.jvm.functions.Function3)
3233
33-
FIXME: Figure out what broke our buildscipt classpath, this is a temporary fix
34+
FIXME: Figure out what broke our buildscript classpath, this is a temporary fix
3435
*/
3536
force("com.squareup.okhttp3:okhttp-coroutines:5.0.0-alpha.14")
3637
}
@@ -99,7 +100,11 @@ dependencies {
99100
}
100101

101102
// Publishing
102-
configureJReleaser()
103+
val sdkVersion: String by project
104+
tasks.register<SonatypeCentralPortalPublishTask>("publishToCentralPortal") {
105+
bundle.set(rootProject.layout.buildDirectory.file("smithy-kotlin-$sdkVersion.tar.gz"))
106+
}
107+
tasks.register<SonatypeCentralPortalWaitForPublicationTask>("waitForCentralPortalPublication") { }
103108

104109
// Code Style
105110
val lintPaths = listOf(

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
kotlin-version = "2.2.0"
33
dokka-version = "2.0.0"
44

5-
aws-kotlin-repo-tools-version = "0.4.59"
5+
aws-kotlin-repo-tools-version = "0.4.61"
66

77
# libs
88
coroutines-version = "1.10.2"

0 commit comments

Comments
 (0)