Build: Fix ide plugin maven artifacts publication

This commit is contained in:
Vyacheslav Gerasimov
2020-11-24 00:30:02 +03:00
parent 8f187f328a
commit 6241f9be2d
+4 -2
View File
@@ -6,8 +6,6 @@ configure<PublishingExtension> {
val artifactName = if (project.name == "idea-plugin") "kotlin-plugin" else project.name
artifactId = "$artifactName-${IdeVersionConfigurator.currentIde.name.toLowerCase()}"
from(components["java"])
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
pom {
name.set("${project.group}:$artifactId")
@@ -53,6 +51,10 @@ configure<PublishingExtension> {
}
}
tasks.withType<GenerateModuleMetadata> {
enabled = false
}
// Disable default `publish` task so publishing will not be done during maven artifact publish
// We should use specialized tasks since we have multiple publications in project
tasks.named("publish") {