File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed
Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55import aws.sdk.kotlin.gradle.dsl.configureLinting
6- import aws.sdk.kotlin.gradle.dsl.configureNexus
6+ import aws.sdk.kotlin.gradle.dsl.configureJReleaser
77import aws.sdk.kotlin.gradle.util.typedProp
8+ import org.jreleaser.model.Active
89
910buildscript {
1011 // NOTE: buildscript classpath for the root project is the parent classloader for the subprojects, we
@@ -22,6 +23,7 @@ plugins {
2223 id(libs.plugins.kotlin.multiplatform.get().pluginId) apply false
2324 id(libs.plugins.kotlin.jvm.get().pluginId) apply false
2425 alias(libs.plugins.aws.kotlin.repo.tools.artifactsizemetrics)
26+ id(" org.jreleaser" ) version " 1.17.0"
2527}
2628
2729artifactSizeMetrics {
@@ -77,8 +79,36 @@ dependencies {
7779 dokka(project(" :hll" ))
7880}
7981
82+ allprojects {
83+ configurations.all {
84+ resolutionStrategy {
85+ force(" com.fasterxml.jackson.core:jackson-core:2.19.1" )
86+ }
87+ }
88+ }
89+
8090// Publishing
81- configureNexus()
91+ jreleaser {
92+ project {
93+ version = " 0.0.1"
94+ }
95+ signing {
96+ active = Active .ALWAYS
97+ armored = true
98+ }
99+ deploy {
100+ maven {
101+ mavenCentral {
102+ create(" maven-central" ) {
103+ active = Active .ALWAYS
104+ url = " https://central.sonatype.com/api/v1/publisher" // TODO: Use `gr jreleaserDeploy`
105+ // sign = true // TODO: Remove me if unnecessary
106+ stagingRepository(rootProject.layout.buildDirectory.dir(" m2" ).get().toString())
107+ }
108+ }
109+ }
110+ }
111+ }
82112
83113// Code Style
84114val lintPaths = listOf (
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ kotlin.native.ignoreDisabledTargets=true
66org.gradle.jvmargs =-Xmx6g -XX:MaxMetaspaceSize=2G
77
88# sdk
9- sdkVersion =1.4.112-SNAPSHOT
9+ sdkVersion =0.0.1
1010
1111# dokka config (values specified at build-time as needed)
1212smithyKotlinDocBaseUrl =https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/$smithyKotlinRuntimeVersion/
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ ksp-version = "2.1.0-1.0.29" # Keep in sync with kotlin-version
44
55dokka-version = " 2.0.0"
66
7- aws-kotlin-repo-tools-version = " 0.4.24 "
7+ aws-kotlin-repo-tools-version = " 0.0.1 "
88
99# libs
1010coroutines-version = " 1.9.0"
You can’t perform that action at this time.
0 commit comments