buildJar.gradle 481 B

12345678910111213141516171819
  1. def sdkDestinationPath = "build/jar/"
  2. def zipFile = file('build/intermediates/aar_main_jar/release/classes.jar')
  3. static def buildTime() {
  4. return new Date().format("yyyyMMddHHmm", TimeZone.getDefault())
  5. }
  6. task deleteBaseBuild(type: Delete) {
  7. delete sdkDestinationPath
  8. }
  9. task makeJar(type: Jar) {
  10. from zipTree(zipFile)
  11. baseName(PUBLISH_ARTIFACT_ID + "-" + PUBLISH_VERSION)
  12. destinationDir(file(sdkDestinationPath))
  13. }
  14. makeJar.dependsOn(deleteBaseBuild, build)