1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 13:32:07 +01:00

Add "uploadLocal" task

to upload unique snapshots and release into the local Maven
repository.
This commit is contained in:
Florian Schmaus 2015-09-08 14:02:31 +02:00
parent 181d58c996
commit 8096da43e0

View file

@ -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