daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest May 16th, 2018 108 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.text.DateFormat
  2. import java.text.SimpleDateFormat
  3.  
  4. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  5.  
  6. // your other gradle code here
  7.  
  8. static def getDateTime() {
  9.     DateFormat df = new SimpleDateFormat("YYYYMMddHHmm");
  10.     return df.format(new Date());
  11. }
  12.  
  13. task _projectZip(type:Zip) {
  14.     description = 'Makes a single zip file suitable for import.'
  15.     from projectDir
  16.     baseName = "project-files-" + getDateTime()
  17.     include 'build.gradle'
  18.     include 'gradle.properties'
  19.     include 'gradlew'
  20.     include 'gradlew.bat'
  21.     include 'settings.gradle'
  22.     include 'gradle/**'
  23.     exclude 'build'
  24.     exclude '.gradle'
  25.     exclude '*.iml'
  26.     exclude 'local.properties'
  27.     include 'app/**'
  28.     exclude 'app/*.iml'
  29.     exclude 'app/build'
  30.     include 'data/**'
  31.     exclude 'data/*.iml'
  32.     exclude 'data/build'
  33.     include 'domain/**'
  34.     exclude 'domain/*.iml'
  35.     exclude 'domain/build'
  36.     include '.idea/**'
  37.     exclude '.idea/workspace.xml'
  38.     exclude '.idea/libraries'
  39.     include 'documents/**'
  40.     destinationDir file('zip')
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top