Created
April 15, 2016 11:43
-
-
Save cyberjso/ce8eac8e69ec97101ae2587794f03fb1 to your computer and use it in GitHub Desktop.
Configuring a Debian package - nebula-ospackage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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