Build: drop maven publication for Kotlin plugin artifacts

This commit is contained in:
Nikolay Krasko
2021-04-26 15:41:04 +03:00
committed by teamcityserver
parent 32f811e0ec
commit 48a4d7d418
18 changed files with 0 additions and 97 deletions

View File

@@ -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()
}

View File

@@ -22,5 +22,3 @@ sourceSets {
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -36,5 +36,3 @@ runtimeJar()
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -59,8 +59,6 @@ sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
projectTest(taskName = "performanceTest") {
exclude("**/*WholeProjectPerformanceTest*")

View File

@@ -37,5 +37,3 @@ testsJar()
projectTest(parallel = true) {
workingDir = rootDir
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -62,5 +62,3 @@ sourcesJar()
javadocJar()
projectTest(parallel = true)
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -79,5 +79,3 @@ projectTest {
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
}
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -88,5 +88,3 @@ runtimeJar()
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -28,5 +28,3 @@ runtimeJar()
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -46,5 +46,3 @@ testsJar()
projectTest(parallel = true) {
workingDir = rootDir
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -39,5 +39,3 @@ testsJar()
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -32,5 +32,3 @@ sourcesJar()
javadocJar()
projectTest(parallel = true)
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -41,5 +41,3 @@ testsJar()
projectTest(parallel = true) {
workingDir = rootDir
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -62,5 +62,3 @@ sourcesJar()
javadocJar()
projectTest(parallel = true)
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -71,5 +71,3 @@ projectTest {
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
}
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -51,5 +51,3 @@ projectTest(parallel = true) {
workingDir = rootDir
useAndroidJar()
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -33,5 +33,3 @@ runtimeJar()
sourcesJar()
javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")

View File

@@ -233,5 +233,3 @@ tasks.register<Sync>("ideaPlugin") {
rename(quote("-$version"), "")
rename(quote("-$bootstrapKotlinVersion"), "")
}
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")