From 7d7d88e1969fd8534a538fc3c3953ce1d6daa14b Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Tue, 7 Jul 2020 14:19:33 +0200 Subject: Remove DistMavenPublishing --- build.gradle.kts | 3 --- .../kotlin/org/jetbrains/DistMavenPublishing.kt | 26 ---------------------- 2 files changed, 29 deletions(-) delete mode 100644 buildSrc/src/main/kotlin/org/jetbrains/DistMavenPublishing.kt diff --git a/build.gradle.kts b/build.gradle.kts index bd73a251..ee17ba75 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,3 @@ -import org.jetbrains.configureDistMaven import org.jetbrains.configureDokkaVersion import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -32,8 +31,6 @@ allprojects { maven(url = "https://dl.bintray.com/jetbrains/markdown/") maven(url = "https://dl.bintray.com/kotlin/kotlin-dev") } - - configureDistMaven() } subprojects { diff --git a/buildSrc/src/main/kotlin/org/jetbrains/DistMavenPublishing.kt b/buildSrc/src/main/kotlin/org/jetbrains/DistMavenPublishing.kt deleted file mode 100644 index 175bbd0b..00000000 --- a/buildSrc/src/main/kotlin/org/jetbrains/DistMavenPublishing.kt +++ /dev/null @@ -1,26 +0,0 @@ -package org.jetbrains - -import org.gradle.api.Project -import org.gradle.api.artifacts.repositories.MavenArtifactRepository -import org.gradle.api.publish.PublishingExtension -import org.gradle.api.publish.maven.tasks.PublishToMavenRepository - -fun Project.configureDistMaven() { // TODO: This can probably be written cleaner - val repoLocation = uri(file("${rootProject.buildDir}/dist-maven")) - var distMaven: MavenArtifactRepository? = null - pluginManager.withPlugin("maven-publish") { - this@configureDistMaven.extensions.findByType(PublishingExtension::class.java)?.repositories { - distMaven = maven { - name = "distMaven" - url = repoLocation - } - } - } - tasks.register("publishToDistMaven") { - group = "publishing" - description = "Publishes all Maven publications to Maven repository 'distMaven'" - dependsOn(tasks.withType(PublishToMavenRepository::class.java).matching { - it.repository == distMaven - }) - } -} \ No newline at end of file -- cgit