Skip to content

Commit d51f38d

Browse files
committed
misc: test jreleaser branch
1 parent 1666121 commit d51f38d

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

build.gradle.kts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55
import aws.sdk.kotlin.gradle.dsl.configureLinting
6-
import aws.sdk.kotlin.gradle.dsl.configureNexus
6+
import aws.sdk.kotlin.gradle.dsl.configureJReleaser
77
import aws.sdk.kotlin.gradle.util.typedProp
8+
import org.jreleaser.model.Active
89

910
buildscript {
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

2729
artifactSizeMetrics {
@@ -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
84114
val lintPaths = listOf(

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ kotlin.native.ignoreDisabledTargets=true
66
org.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)
1212
smithyKotlinDocBaseUrl=https://sdk.amazonaws.com/kotlin/api/smithy-kotlin/api/$smithyKotlinRuntimeVersion/

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.1.0-1.0.29" # Keep in sync with kotlin-version
44

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

0 commit comments

Comments
 (0)