buildJar.gradle 466 B

1234567891011121314151617
  1. def SDK_BASENAME = "eyuancommsdk-comm"
  2. def SDK_VERSION = "1.0.0"
  3. def SEPARATOR = "-"
  4. def sdkDestinationPath = "build/jar/"
  5. def zipFile = file('build/intermediates/aar_main_jar/release/classes.jar')
  6. task deleteBaseBuild(type: Delete) {
  7. delete sdkDestinationPath
  8. }
  9. task makeJar(type: Jar) {
  10. from zipTree(zipFile)
  11. baseName = SDK_BASENAME + SEPARATOR + SDK_VERSION
  12. destinationDir = file(sdkDestinationPath)
  13. }
  14. makeJar.dependsOn(deleteBaseBuild, build)