Skip to content

Instantly share code, notes, and snippets.

@jezinka
Created April 14, 2018 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jezinka/763570fe71d19b4468cdca09d4c92427 to your computer and use it in GitHub Desktop.
Save jezinka/763570fe71d19b4468cdca09d4c92427 to your computer and use it in GitHub Desktop.
task stage(type: Copy, dependsOn: [clean, build]) {
from jar.archivePath
into project.rootDir
rename {
'app.jar'
}
}
stage.mustRunAfter(clean)
clean << {
project.file('app.jar').delete()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment