mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-25 15:52:06 +01:00
Add "uploadLocal" task
to upload unique snapshots and release into the local Maven repository.
This commit is contained in:
parent
181d58c996
commit
8096da43e0
1 changed files with 15 additions and 0 deletions
15
build.gradle
15
build.gradle
|
@ -262,6 +262,21 @@ subprojects {
|
||||||
classifier = 'tests'
|
classifier = 'tests'
|
||||||
from sourceSets.test.output
|
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 {
|
artifacts {
|
||||||
archives sourcesJar
|
archives sourcesJar
|
||||||
archives javadocJar
|
archives javadocJar
|
||||||
|
|
Loading…
Reference in a new issue