mirror of
https://github.com/eclipse/paho.mqtt.android.git
synced 2025-05-08 18:39:31 +08:00
Bug: 474722 - Including Eclipse Maven repository publishing details
Signed-off-by: James Sutton <james.sutton@uk.ibm.com> Change-Id: Iea2b8f468a3b473f7aafe4079c20baa95a313b81
This commit is contained in:
parent
5275765c0b
commit
c58987b542
@ -81,7 +81,7 @@ task ("generateLibraryJar", type: Jar, dependsOn: "renameLibraryJar") {
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
eclipsePublication(MavenPublication) {
|
||||
paho(MavenPublication) {
|
||||
groupId 'org.eclipse.paho'
|
||||
artifact generateSourcesJar
|
||||
artifact generateLibraryJar
|
||||
@ -95,8 +95,15 @@ publishing {
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url "file:/${project.projectDir}/artifacts"
|
||||
if (project.hasProperty('eclipseRepoUsername')) {
|
||||
maven {
|
||||
name 'eclipse'
|
||||
url 'https://repo.eclipse.org/content/repositories/paho-' + (version.endsWith('-SNAPSHOT') ? 'snapshots/' : 'releases/')
|
||||
credentials {
|
||||
username eclipseRepoUsername
|
||||
password eclipseRepoPassword
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user