Skip to content

Commit fa18abe

Browse files
committed
Bug: 474722 - Migrating Android Service to gradle
Android Service Jar contained another JAR containing the classes. This was a mistake in the build.gradle build script in the order in which it was preparing the compiled classes into the artifact. Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
1 parent 40bb409 commit fa18abe

1 file changed

Lines changed: 6 additions & 2 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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ task("renameLibraryJar", type: Copy, dependsOn: "clearLibraryJar") {
7575
rename('classes.jar', archivesBaseName + '-' + version + '.jar')
7676
}
7777

78-
task ("generateLibraryJar", type: Jar, dependsOn: "renameLibraryJar") {
79-
from('build/libs/' + archivesBaseName + '-' + version + '.jar')
78+
task ("generateLibraryJar", type: Jar) {
79+
from('build/intermediates/classes/release')
8080
}
8181

8282
publishing {
@@ -99,6 +99,10 @@ publishing {
9999
password eclipseRepoPassword
100100
}
101101
}
102+
} else {
103+
maven {
104+
url "$buildDir/repo"
105+
}
102106
}
103107
}
104108
}

0 commit comments

Comments
 (0)