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:
James Sutton 2015-09-14 11:08:11 +01:00
parent 5275765c0b
commit c58987b542

View File

@ -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 {
if (project.hasProperty('eclipseRepoUsername')) {
maven {
url "file:/${project.projectDir}/artifacts"
name 'eclipse'
url 'https://repo.eclipse.org/content/repositories/paho-' + (version.endsWith('-SNAPSHOT') ? 'snapshots/' : 'releases/')
credentials {
username eclipseRepoUsername
password eclipseRepoPassword
}
}
}
}
}