Skip to content

Instantly share code, notes, and snippets.

@cyberjso
Created April 15, 2016 11:43
Show Gist options
  • Save cyberjso/ce8eac8e69ec97101ae2587794f03fb1 to your computer and use it in GitHub Desktop.
Save cyberjso/ce8eac8e69ec97101ae2587794f03fb1 to your computer and use it in GitHub Desktop.
Configuring a Debian package - nebula-ospackage
task packDeb(type: Deb) {
packageName = project.name
version = project.version
os = LINUX
into '/opt/' + project.name
from(jar.outputs.files) {
into 'lib'
}
from('build/scripts') {
into 'bin'
fileMode = 0550
}
from(configurations.runtime) {
into 'lib'
}
from('src/main/resources') {
fileType CONFIG | NOREPLACE
into 'conf'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment