Skip to content

Commit d48fce5

Browse files
committed
misc: configure version catalog in jreleaser
1 parent 87d5f4d commit d48fce5

File tree

1 file changed

+7
-10
lines changed
  • build-plugins/build-support/src/main/kotlin/aws/sdk/kotlin/gradle/dsl

1 file changed

+7
-10
lines changed

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

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,6 @@ fun Project.configurePublishing(repoName: String, githubOrganization: String = "
143143
}
144144
}
145145
}
146-
147-
/*
148-
Creates a placeholder JAR for the version catalog
149-
The `version-catalog` plugin doesn't generate one because it isn't needed but JReleaser requires a jar
150-
https://docs.gradle.org/current/userguide/version_catalogs.html#sec:version-catalog-plugin
151-
*/
152-
tasks.register<Jar>("versionCatalogJar") {
153-
archiveBaseName.set("version-catalog")
154-
from("gradle/libs.versions.toml")
155-
}
156146
}
157147

158148
/**
@@ -195,6 +185,13 @@ fun Project.configureJReleaser() {
195185
active = Active.ALWAYS
196186
url = "https://central.sonatype.com/api/v1/publisher"
197187
stagingRepository(rootProject.layout.buildDirectory.dir("m2").get().toString())
188+
artifacts {
189+
artifactOverride {
190+
artifactId = "version-catalog"
191+
jar = false
192+
verifyPom = false // jreleaser doesn't understand toml packaging
193+
}
194+
}
198195
}
199196
}
200197
}

0 commit comments

Comments
 (0)