RED-8359 - fix double publishing

This commit is contained in:
Andrei Isvoran 2024-02-08 12:38:35 +02:00
parent aa5df26596
commit fc4ffff499

View File

@ -42,7 +42,7 @@ java.targetCompatibility = JavaVersion.VERSION_17
publishing { publishing {
publications { publications {
create<MavenPublication>(name) { create<MavenPublication>("mavenJava") {
from(components["java"]) from(components["java"])
} }
} }
@ -57,6 +57,10 @@ publishing {
} }
} }
tasks.withType<PublishToMavenRepository> {
onlyIf { publication.name == "mavenJava" }
}
pmd { pmd {
isConsoleOutput = true isConsoleOutput = true
} }