diff options
-rw-r--r-- | build.gradle.kts | 3 | ||||
-rw-r--r-- | buildSrc/src/main/kotlin/org/jetbrains/DistMavenPublishing.kt | 26 |
2 files changed, 0 insertions, 29 deletions
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 |