buildJar.gradle 446 B

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