Skip to content

Commit 01cd410

Browse files
committed
checkpoint
1 parent 9ff14c4 commit 01cd410

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

build-plugins/build-support/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ dependencies {
2424
exclude(group = "org.jetbrains.kotlin", module = "kotlin-compiler-embeddable")
2525
}
2626

27-
implementation(libs.nexusPublishPlugin)
2827
implementation(libs.jReleaserPlugin)
2928
compileOnly(gradleApi())
3029
implementation(libs.aws.sdk.s3)

build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl/Publish.kt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package aws.sdk.kotlin.gradle.dsl
66

77
import aws.sdk.kotlin.gradle.util.verifyRootProject
8-
import org.jreleaser.gradle.plugin.JReleaserExtension
98
import org.gradle.api.Project
109
import org.gradle.api.publish.PublishingExtension
1110
import org.gradle.api.publish.maven.MavenPublication
@@ -14,6 +13,7 @@ import org.gradle.api.tasks.bundling.Jar
1413
import org.gradle.kotlin.dsl.*
1514
import org.gradle.plugins.signing.Sign
1615
import org.gradle.plugins.signing.SigningExtension
16+
import org.jreleaser.gradle.plugin.JReleaserExtension
1717
import org.jreleaser.model.Active
1818

1919
// Props
@@ -141,6 +141,19 @@ fun Project.configurePublishing(repoName: String, githubOrganization: String = "
141141
}
142142
}
143143
}
144+
145+
/*
146+
Creates a dummy JAR for version catalog publishing
147+
The `version-catalog` plugin doesn't generate one because it isn't needed but JReleaser requires a jar to be present in the version catalog component
148+
https://docs.gradle.org/current/userguide/version_catalogs.html#sec:version-catalog-plugin
149+
150+
Consuming published version catalogs with the dummy JAR still work
151+
https://docs.gradle.org/current/userguide/version_catalogs.html#sec:importing-published-catalog
152+
*/
153+
tasks.register<Jar>("versionCatalogJar") {
154+
archiveBaseName.set("version-catalog")
155+
from("gradle/libs.versions.toml")
156+
}
144157
}
145158

146159
/**

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ aws-sdk-s3 = { module = "aws.sdk.kotlin:s3", version.ref = "aws-sdk-version" }
1313
ktlint-cli = { module = "com.pinterest.ktlint:ktlint-cli", version.ref = "ktlint" }
1414
ktlint-cli-ruleset-core = { module = "com.pinterest.ktlint:ktlint-cli-ruleset-core", version.ref = "ktlint" }
1515
ktlint-test = {module = "com.pinterest.ktlint:ktlint-test", version.ref = "ktlint" }
16-
jReleaserPlugin = { module = "org.jreleaser:jreleaser-gradle-plugin", version = "jreleaser-plugin-version" }
16+
jReleaserPlugin = { module = "org.jreleaser:jreleaser-gradle-plugin", version.ref = "jreleaser-plugin-version" }
1717
smithy-model = { module = "software.amazon.smithy:smithy-model", version.ref = "smithy-version" }
1818
smithy-gradle-base-plugin = { module = "software.amazon.smithy.gradle:smithy-base", version.ref = "smithy-gradle-plugin-version" }
1919

0 commit comments

Comments
 (0)