Skip to content

Commit

Permalink
Empty jar workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankoppier committed Sep 22, 2024
1 parent 584c078 commit 71ab5d9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jreleaser {
stagingRepository(project(":mappie-api").layout.buildDirectory.dir("staging-deploy").get().toString())
username = properties["mavenCentralUsername"] as? String
password = properties["mavenCentralPassword"] as? String
applyMavenCentralRules = false
applyMavenCentralRules = true
verifyPom = false
retryDelay = 20
}
Expand Down
10 changes: 9 additions & 1 deletion mappie-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ tasks.register<Jar>("javadocJar") {
dependsOn(dokkaHtml)
}

tasks.register<Jar>("emptyJar") {
group = "build"
description = "Assemble an empty jar."
}

publishing {
repositories {
maven {
Expand All @@ -66,7 +71,10 @@ publishing {

publications.configureEach {
if (this is MavenPublication) {
artifact(tasks["javadocJar"])
// jreleaser workaround
if (name != "jvm" && name != "kotlinMultiplatform") {
artifact(tasks["emptyJar"])
}
pom {
name = "tech.mappie:compiler-plugin"
description = "Kotlin Compiler Plugin for generating object mappers"
Expand Down

0 comments on commit 71ab5d9

Please sign in to comment.