RED-8359 - fix double publishing
This commit is contained in:
parent
aa5df26596
commit
fc4ffff499
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user