From 8096da43e011d0520719917050d346b2fb5d9a8f Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 8 Sep 2015 14:02:31 +0200 Subject: [PATCH] Add "uploadLocal" task to upload unique snapshots and release into the local Maven repository. --- build.gradle | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/build.gradle b/build.gradle index 5741f7767..2b9db5ca6 100644 --- a/build.gradle +++ b/build.gradle @@ -262,6 +262,21 @@ subprojects { classifier = 'tests' from sourceSets.test.output } + + // Does install unique snapshosts (and release)s in the local maven + // repository, unlike the 'install' task. + // You can specify the path of the local maven repository using 'maven.repo.local', e.g. + // gradle uploadLocal -Dmaven.repo.local=/var/www/repo + task uploadLocal(type: Upload) { + description "Uploads artifacts into the local maven repositories URL." + configuration = configurations['archives'] + repositories { + mavenDeployer { + repository url: repositories.mavenLocal().url + } + } + } + artifacts { archives sourcesJar archives javadocJar