Skip to content

Commit 27efcb6

Browse files
committed
Migrate to JReleaser, set up testing namespace
1 parent 6a7c47b commit 27efcb6

File tree

8 files changed

+17
-24
lines changed

8 files changed

+17
-24
lines changed

aws-runtime/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
66
import aws.sdk.kotlin.gradle.kmp.kotlin
77
import aws.sdk.kotlin.gradle.kmp.needsKmpConfigured
88
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -24,16 +24,15 @@ val libraries = libs
2424
subprojects {
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()

bom/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
66
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
77
import org.jetbrains.kotlin.gradle.plugin.KotlinMultiplatformPluginWrapper
88
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
@@ -16,7 +16,7 @@ plugins {
1616

1717
val sdkVersion: String by project
1818

19-
group = "aws.sdk.kotlin"
19+
group = "com.sonatype.central.testing.amazon"
2020
version = sdkVersion
2121
description = "Provides a BOM"
2222

@@ -98,8 +98,7 @@ fun DependencyConstraintHandler.api(constraintNotation: Any) =
9898

9999
createBomConstraintsAndVersionCatalog()
100100

101-
// TODO Use configurePublishing when migrating to Sonatype Publisher API / JReleaser
102-
configureNexusPublishing("aws-sdk-kotlin")
101+
configurePublishing("aws-sdk-kotlin")
103102

104103
publishing {
105104
publications {

build-support/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1414
repositories {
1515
mavenLocal()

build.gradle.kts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
import aws.sdk.kotlin.gradle.dsl.configureLinting
66
import aws.sdk.kotlin.gradle.dsl.configureMinorVersionStrategyRules
7-
import aws.sdk.kotlin.gradle.dsl.configureNexus
7+
import aws.sdk.kotlin.gradle.dsl.configureJReleaser
88
import aws.sdk.kotlin.gradle.util.typedProp
99

1010
buildscript {
@@ -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
10097
val lintPaths = listOf(

codegen/aws-sdk-codegen/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616

1717
val sdkVersion: String by project
1818
description = "Codegen support for AWS SDK for Kotlin"
19-
group = "aws.sdk.kotlin"
19+
group = "com.sonatype.central.testing.amazon"
2020
version = sdkVersion
2121

2222
dependencies {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ksp-version = "2.2.0-2.0.2" # Keep in sync with kotlin-version
44

55
dokka-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
1010
coroutines-version = "1.10.2"

hll/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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
77
import aws.sdk.kotlin.gradle.kmp.kotlin
88
import aws.sdk.kotlin.gradle.kmp.needsKmpConfigured
99
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -44,10 +44,9 @@ val hllPreviewVersion = if (sdkVersion.contains("-SNAPSHOT")) { // e.g. 1.3.29-b
4444
}
4545

4646
subprojects {
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

5352
subprojects {

services/build.gradle.kts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
66
import aws.sdk.kotlin.gradle.kmp.*
77
import aws.sdk.kotlin.gradle.util.typedProp
88
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
@@ -26,7 +26,7 @@ val optinAnnotations = listOf(
2626
val libraries = libs
2727

2828
subprojects {
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 {

0 commit comments

Comments
 (0)