Advertisement
VirtualMaestro

Untitled

Sep 14th, 2020
2,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.64 KB | None | 0 0
  1. task clean (type: Delete) {
  2.     println 'Clean dir build'
  3.     delete 'build'
  4. }
  5.  
  6. task copySrc (type: Copy) {
  7.     println 'Create Stubb package'
  8.    
  9.     from "."
  10.    
  11.     include "ecs-unityintegration/"
  12.     include "StubbFramework/"
  13.     include "StubbUnity/StubbUnity/Src/"
  14.    
  15.     exclude '**/*.gradle'
  16.     exclude 'build'
  17.     exclude '**/*.git'
  18.  
  19.     into "build"
  20. }
  21.  
  22. task createZip (type: Zip) {
  23.     println 'Create ZIP package'
  24.  
  25.     archiveFileName = "StubbUnity.zip"
  26.     destinationDirectory = file(".")
  27.  
  28.     from "build"
  29. }
  30.  
  31. task build (dependsOn: ['clean', 'copySrc', 'createZip', 'clean']) {
  32.     println 'Package StubbUnity.zip has been created!'
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement