Fix publish for shaded caffeine artifact (#387)

- Don't publish rich Gradle module for
  spring-pulsar-cache-provider-caffeine
This commit is contained in:
Chris Bono
2023-03-28 00:27:36 -05:00
committed by GitHub
parent 18eac19012
commit 156b85cd7b

View File

@@ -33,6 +33,11 @@ shadowJar {
tasks.build.dependsOn tasks.shadowJar
// disable module metadata - otherwise original jar will be used when published
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
// delay the maven publishing - instead add shadowJar to the publication
components.java.withVariantsFromConfiguration(configurations.shadowRuntimeElements) {
skip()