Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task clean (type: Delete) {
- println 'Clean dir build'
- delete 'build'
- }
- task copySrc (type: Copy) {
- println 'Create Stubb package'
- from "."
- include "ecs-unityintegration/"
- include "StubbFramework/"
- include "StubbUnity/StubbUnity/Src/"
- exclude '**/*.gradle'
- exclude 'build'
- exclude '**/*.git'
- into "build"
- }
- task createZip (type: Zip) {
- println 'Create ZIP package'
- archiveFileName = "StubbUnity.zip"
- destinationDirectory = file(".")
- from "build"
- }
- task build (dependsOn: ['clean', 'copySrc', 'createZip', 'clean']) {
- println 'Package StubbUnity.zip has been created!'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement