Skip to content

Commit

Permalink
Bug: 474722 - Including Eclipse Maven repository publishing details
Browse files Browse the repository at this point in the history
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
Change-Id: Iea2b8f468a3b473f7aafe4079c20baa95a313b81
  • Loading branch information
jpwsutton committed Sep 14, 2015
1 parent 844ebf3 commit c13f6d3
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ task ("generateLibraryJar", type: Jar, dependsOn: "renameLibraryJar") {

publishing {
publications {
eclipsePublication(MavenPublication) {
paho(MavenPublication) {
groupId 'org.eclipse.paho'
artifact generateSourcesJar
artifact generateLibraryJar
Expand All @@ -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
}
}
}
}
}

0 comments on commit c13f6d3

Please sign in to comment.