Skip to content

Commit c13f6d3

Browse files
committed
Bug: 474722 - Including Eclipse Maven repository publishing details
Signed-off-by: James Sutton <james.sutton@uk.ibm.com> Change-Id: Iea2b8f468a3b473f7aafe4079c20baa95a313b81
1 parent 844ebf3 commit c13f6d3

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

  • org.eclipse.paho.android.service/org.eclipse.paho.android.service

org.eclipse.paho.android.service/org.eclipse.paho.android.service/build.gradle

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ task ("generateLibraryJar", type: Jar, dependsOn: "renameLibraryJar") {
8181

8282
publishing {
8383
publications {
84-
eclipsePublication(MavenPublication) {
84+
paho(MavenPublication) {
8585
groupId 'org.eclipse.paho'
8686
artifact generateSourcesJar
8787
artifact generateLibraryJar
@@ -95,8 +95,15 @@ publishing {
9595
}
9696

9797
repositories {
98-
maven {
99-
url "file:/${project.projectDir}/artifacts"
98+
if (project.hasProperty('eclipseRepoUsername')) {
99+
maven {
100+
name 'eclipse'
101+
url 'https://repo.eclipse.org/content/repositories/paho-' + (version.endsWith('-SNAPSHOT') ? 'snapshots/' : 'releases/')
102+
credentials {
103+
username eclipseRepoUsername
104+
password eclipseRepoPassword
105+
}
106+
}
100107
}
101108
}
102109
}

0 commit comments

Comments
 (0)