aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-06-15 15:10:25 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2018-07-14 23:57:13 +0300
commite5316d078af1493d4e9510d5d80757fdcc71f495 (patch)
tree0e0fac48f9c367cfadbf7299e331a6e065fcce80
parent0485472951134685c434d148b6fe5b6393217023 (diff)
downloaddokka-e5316d078af1493d4e9510d5d80757fdcc71f495.tar.gz
dokka-e5316d078af1493d4e9510d5d80757fdcc71f495.tar.bz2
dokka-e5316d078af1493d4e9510d5d80757fdcc71f495.zip
Setup maven publishing to local directory
-rw-r--r--build.gradle25
1 files changed, 25 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index e13af2b6..d282aeb0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -100,4 +100,29 @@ def ideaRT() {
return zipTree(project.configurations.ideaIC.singleFile).matching ({
include("lib/idea_rt.jar")
})
+}
+
+def repoLocation = uri(file("$buildDir/dist-maven"))
+
+allprojects {
+
+ task publishToDistMaven {
+ group "publishing"
+ description "Publishes all Maven publications to Maven repository 'distMaven'."
+ dependsOn tasks.withType(PublishToMavenRepository).matching {
+ it.repository == publishing.repositories.distMaven
+ }
+ }
+
+ plugins.withType(MavenPublishPlugin) {
+ publishing {
+ repositories {
+ maven {
+ name 'distMaven'
+ url repoLocation
+ }
+ }
+ }
+
+ }
} \ No newline at end of file