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
65import aws.sdk.kotlin.gradle.dsl.configureLinting
76import aws.sdk.kotlin.gradle.dsl.configureMinorVersionStrategyRules
87import aws.sdk.kotlin.gradle.util.typedProp
98import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
9+ import aws.sdk.kotlin.gradle.publishing.SonatypeCentralPortalPublishTask
10+ import aws.sdk.kotlin.gradle.publishing.SonatypeCentralPortalWaitForPublicationTask
1011
1112buildscript {
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
105110val lintPaths = listOf (
0 commit comments