File tree Expand file tree Collapse file tree 8 files changed +17
-24
lines changed Expand file tree Collapse file tree 8 files changed +17
-24
lines changed Original file line number Diff line number Diff line change 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.configureNexusPublishing
5+ import aws.sdk.kotlin.gradle.dsl.configurePublishing
66import aws.sdk.kotlin.gradle.kmp.kotlin
77import aws.sdk.kotlin.gradle.kmp.needsKmpConfigured
88import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -24,16 +24,15 @@ val libraries = libs
2424subprojects {
2525 if (! needsKmpConfigured) return @subprojects
2626
27- group = " aws.sdk.kotlin "
27+ group = " com.sonatype.central.testing.amazon "
2828 version = sdkVersion
2929
3030 apply {
3131 plugin(" org.jetbrains.kotlin.multiplatform" )
3232 plugin(libraries.plugins.aws.kotlin.repo.tools.kmp.get().pluginId)
3333 }
3434
35- // TODO Use configurePublishing when migrating to Sonatype Publisher API / JReleaser
36- configureNexusPublishing(" aws-sdk-kotlin" )
35+ configurePublishing(" aws-sdk-kotlin" )
3736
3837 kotlin {
3938 explicitApi()
Original file line number Diff line number Diff line change 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.configureNexusPublishing
5+ import aws.sdk.kotlin.gradle.dsl.configurePublishing
66import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
77import org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper
88import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
@@ -16,7 +16,7 @@ plugins {
1616
1717val sdkVersion: String by project
1818
19- group = " aws.sdk.kotlin "
19+ group = " com.sonatype.central.testing.amazon "
2020version = sdkVersion
2121description = " Provides a BOM"
2222
@@ -98,8 +98,7 @@ fun DependencyConstraintHandler.api(constraintNotation: Any) =
9898
9999createBomConstraintsAndVersionCatalog()
100100
101- // TODO Use configurePublishing when migrating to Sonatype Publisher API / JReleaser
102- configureNexusPublishing(" aws-sdk-kotlin" )
101+ configurePublishing(" aws-sdk-kotlin" )
103102
104103publishing {
105104 publications {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ plugins {
99 alias(libs.plugins.kotlinx.serialization)
1010}
1111
12- group = " aws.sdk.kotlin "
12+ group = " com.sonatype.central.testing.amazon "
1313
1414repositories {
1515 mavenLocal()
Original file line number Diff line number Diff line change 44 */
55import aws.sdk.kotlin.gradle.dsl.configureLinting
66import aws.sdk.kotlin.gradle.dsl.configureMinorVersionStrategyRules
7- import aws.sdk.kotlin.gradle.dsl.configureNexus
7+ import aws.sdk.kotlin.gradle.dsl.configureJReleaser
88import aws.sdk.kotlin.gradle.util.typedProp
99
1010buildscript {
@@ -91,10 +91,7 @@ dependencies {
9191}
9292
9393// Publishing
94- configureNexus(
95- nexusUrl = " https://aws.oss.sonatype.org/service/local/" ,
96- snapshotRepositoryUrl = " https://aws.oss.sonatype.org/content/repositories/snapshots/" ,
97- )
94+ configureJReleaser()
9895
9996// Code Style
10097val lintPaths = listOf (
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ plugins {
1616
1717val sdkVersion: String by project
1818description = " Codegen support for AWS SDK for Kotlin"
19- group = " aws.sdk.kotlin "
19+ group = " com.sonatype.central.testing.amazon "
2020version = sdkVersion
2121
2222dependencies {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ksp-version = "2.2.0-2.0.2" # Keep in sync with kotlin-version
44
55dokka-version = " 2.0.0"
66
7- aws-kotlin-repo-tools-version = " 0.4.54 "
7+ aws-kotlin-repo-tools-version = " 0.4.56 "
88
99# libs
1010coroutines-version = " 1.10.2"
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6- import aws.sdk.kotlin.gradle.dsl.configureNexusPublishing
6+ import aws.sdk.kotlin.gradle.dsl.configurePublishing
77import aws.sdk.kotlin.gradle.kmp.kotlin
88import aws.sdk.kotlin.gradle.kmp.needsKmpConfigured
99import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -44,10 +44,9 @@ val hllPreviewVersion = if (sdkVersion.contains("-SNAPSHOT")) { // e.g. 1.3.29-b
4444}
4545
4646subprojects {
47- group = " aws.sdk.kotlin "
47+ group = " com.sonatype.central.testing.amazon "
4848 version = hllPreviewVersion
49- // TODO Use configurePublishing when migrating to Sonatype Publisher API / JReleaser
50- configureNexusPublishing(" aws-sdk-kotlin" )
49+ configurePublishing(" aws-sdk-kotlin" )
5150}
5251
5352subprojects {
Original file line number Diff line number Diff line change 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.configureNexusPublishing
5+ import aws.sdk.kotlin.gradle.dsl.configurePublishing
66import aws.sdk.kotlin.gradle.kmp.*
77import aws.sdk.kotlin.gradle.util.typedProp
88import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -26,7 +26,7 @@ val optinAnnotations = listOf(
2626val libraries = libs
2727
2828subprojects {
29- group = " aws.sdk.kotlin "
29+ group = " com.sonatype.central.testing.amazon "
3030 version = sdkVersion
3131
3232 apply {
@@ -135,8 +135,7 @@ subprojects {
135135 }
136136 }
137137
138- // TODO Use configurePublishing when migrating to Sonatype Publisher API / JReleaser
139- configureNexusPublishing(" aws-sdk-kotlin" )
138+ configurePublishing(" aws-sdk-kotlin" )
140139
141140 publishing {
142141 publications.all {
You can’t perform that action at this time.
0 commit comments