Skip to content

Commit

Permalink
Bug: 474722 - Migrating Android Service to gradle
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jpwsutton committed Sep 16, 2015
1 parent 40bb409 commit fa18abe
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -75,8 +75,8 @@ task("renameLibraryJar", type: Copy, dependsOn: "clearLibraryJar") {
rename('classes.jar', archivesBaseName + '-' + version + '.jar')
}

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

publishing {
Expand All @@ -99,6 +99,10 @@ publishing {
password eclipseRepoPassword
}
}
} else {
maven {
url "$buildDir/repo"
}
}
}
}

0 comments on commit fa18abe

Please sign in to comment.