From c3aa5ac1f29497ce9df38601487ee5afbf502c8b Mon Sep 17 00:00:00 2001 From: Luiz Gustavo Pozzo Date: Tue, 19 May 2020 09:30:12 +0100 Subject: [PATCH] adding task uploadArchivesLocal to deploy artifacts to local maven --- gradle/gradle-mvn-push.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gradle/gradle-mvn-push.gradle b/gradle/gradle-mvn-push.gradle index 6aba8b2..cb9f5c5 100644 --- a/gradle/gradle-mvn-push.gradle +++ b/gradle/gradle-mvn-push.gradle @@ -107,3 +107,16 @@ afterEvaluate { project -> archives javadocJar } } + +task uploadArchivesLocal(type: Upload) { + description "Installs the artifacts to the local Maven repository." + configuration = configurations['archives'] + repositories { + mavenDeployer { + pom.groupId = GROUP + pom.artifactId = POM_ARTIFACT_ID + pom.version = VERSION_NAME + repository url: "file://${System.properties['user.home']}/.m2/repository" + } + } +}