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()
|
|
||||||
}
|
|
||||||
@@ -22,5 +22,3 @@ sourceSets {
|
|||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -36,5 +36,3 @@ runtimeJar()
|
|||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -59,8 +59,6 @@ sourcesJar()
|
|||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|
||||||
projectTest(taskName = "performanceTest") {
|
projectTest(taskName = "performanceTest") {
|
||||||
exclude("**/*WholeProjectPerformanceTest*")
|
exclude("**/*WholeProjectPerformanceTest*")
|
||||||
|
|
||||||
|
|||||||
@@ -37,5 +37,3 @@ testsJar()
|
|||||||
projectTest(parallel = true) {
|
projectTest(parallel = true) {
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -62,5 +62,3 @@ sourcesJar()
|
|||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
projectTest(parallel = true)
|
projectTest(parallel = true)
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -79,5 +79,3 @@ projectTest {
|
|||||||
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
|
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -88,5 +88,3 @@ runtimeJar()
|
|||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -28,5 +28,3 @@ runtimeJar()
|
|||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -46,5 +46,3 @@ testsJar()
|
|||||||
projectTest(parallel = true) {
|
projectTest(parallel = true) {
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -39,5 +39,3 @@ testsJar()
|
|||||||
|
|
||||||
sourcesJar()
|
sourcesJar()
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -32,5 +32,3 @@ sourcesJar()
|
|||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
projectTest(parallel = true)
|
projectTest(parallel = true)
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -41,5 +41,3 @@ testsJar()
|
|||||||
projectTest(parallel = true) {
|
projectTest(parallel = true) {
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -62,5 +62,3 @@ sourcesJar()
|
|||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
projectTest(parallel = true)
|
projectTest(parallel = true)
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -71,5 +71,3 @@ projectTest {
|
|||||||
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
|
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -51,5 +51,3 @@ projectTest(parallel = true) {
|
|||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
useAndroidJar()
|
useAndroidJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -33,5 +33,3 @@ runtimeJar()
|
|||||||
sourcesJar()
|
sourcesJar()
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
@@ -233,5 +233,3 @@ tasks.register<Sync>("ideaPlugin") {
|
|||||||
rename(quote("-$version"), "")
|
rename(quote("-$version"), "")
|
||||||
rename(quote("-$bootstrapKotlinVersion"), "")
|
rename(quote("-$bootstrapKotlinVersion"), "")
|
||||||
}
|
}
|
||||||
|
|
||||||
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user