diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-07 14:19:33 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-07-07 15:17:36 +0200 |
commit | 7d7d88e1969fd8534a538fc3c3953ce1d6daa14b (patch) | |
tree | 39870d76921ea34874840c6e39bf80f7e5f4b665 | |
parent | 90459de7b6fce28a8ba57aca5eb213575204bc3d (diff) | |
download | dokka-7d7d88e1969fd8534a538fc3c3953ce1d6daa14b.tar.gz dokka-7d7d88e1969fd8534a538fc3c3953ce1d6daa14b.tar.bz2 dokka-7d7d88e1969fd8534a538fc3c3953ce1d6daa14b.zip |
Remove DistMavenPublishing
-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 |