Build: drop maven publication for Kotlin plugin artifacts
This commit is contained in:
committed by
teamcityserver
parent
32f811e0ec
commit
48a4d7d418
@@ -1,63 +0,0 @@
|
||||
apply(plugin = "maven-publish")
|
||||
|
||||
configure<PublishingExtension> {
|
||||
publications {
|
||||
create<MavenPublication>("KotlinPlugin") {
|
||||
val artifactName = if (project.name == "idea-plugin") "kotlin-plugin" else project.name
|
||||
artifactId = "$artifactName-${IdeVersionConfigurator.currentIde.name.toLowerCase()}"
|
||||
from(components["java"])
|
||||
|
||||
pom {
|
||||
name.set("${project.group}:$artifactId")
|
||||
packaging = "jar"
|
||||
description.set(project.description)
|
||||
url.set("https://kotlinlang.org/")
|
||||
licenses {
|
||||
license {
|
||||
name.set("The Apache License, Version 2.0")
|
||||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url.set("https://github.com/JetBrains/kotlin")
|
||||
connection.set("scm:git:https://github.com/JetBrains/kotlin.git")
|
||||
developerConnection.set("scm:git:https://github.com/JetBrains/kotlin.git")
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
name.set("Kotlin Team")
|
||||
organization.set("JetBrains")
|
||||
organizationUrl.set("https://www.jetbrains.com")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri(findProperty("deployRepoUrl") ?: findProperty("deploy-url") ?: "${rootProject.buildDir}/repo")
|
||||
authentication {
|
||||
val mavenUser = findProperty("kotlin.bintray.user") as String?
|
||||
val mavenPass = findProperty("kotlin.bintray.password") as String?
|
||||
if (url.scheme != "file" && mavenUser != null && mavenPass != null) {
|
||||
credentials {
|
||||
username = mavenUser
|
||||
password = mavenPass
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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") {
|
||||
enabled = false
|
||||
dependsOn.clear()
|
||||
}
|
||||
Reference in New Issue
Block a user