1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- defaultTasks 'distZip'
- apply plugin: 'java'
- apply plugin: 'application'
- apply from: "$rootDir/utils/IO.gradle"
- version = '0.6.0.0-SNAPSHOT'
- mainClassName = 'de.nplusc.izc.iZpl.Main'
- //'de.nplusc.izc.iZpl.Main'
- jar{
- manifest{
- attributes 'Implementation-Title': 'iZPlaylist',
- 'Implementation-Version': version,
- 'Main-Class': 'de.nplusc.izc.iZpl.Main'
-
- }
- }
- startScripts << {
- def startScriptDir = outputDir.getAbsolutePath()
- def winStartScript = startScriptDir + "/" + applicationName + ".bat"
- def winStartScriptCopy = startScriptDir + "/" + applicationName + "c.bat"
- def overwriteExistingFile = true
- copyFile(winStartScript, winStartScriptCopy, overwriteExistingFile)
- modifyFile(winStartScript) {
- // javaw.exe doesn't have a console
- if(it.contains("java.exe")){
- return it.replace("java.exe", "javaw.exe")
- }
- // Command that launches the app
- else if(it.startsWith("\"%JAVA_EXE%\" %DEFAULT_JVM_OPTS%")){
- return "start \"\" /b " + it
- }
- // Leave the line unchanged
- else{
- return it
- }
- }
- }
- distZip {
- // Include the additional start script
- into(project.name+"-"+project.version+"/bin/"){
- from(startScripts.outputDir)
- include '*c.bat'
- }
- }
- sourceSets{
- main{
- resources{
- exclude '**/*.xcf'
- }
- }
- }
- dependencies{
- compile fileTree(dir: 'lib', include: '*.jar')
- compile "net.rubygrapefruit:native-platform:0.9"
- compile "commons-io:commons-io:2.+"
- compile 'org.apache.commons:commons-exec:1.3'
- compile "org.yaml:snakeyaml:1.14"
- compile "commons-net:commons-net:3.3"
- compile 'uk.co.caprica:vlcj:3.3.0'
- compile 'com.googlecode.mp4parser:isoparser:1.0-RC-1'
- compile 'de.schlichtherle.truezip:truezip-file:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-driver-zip:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-driver-file:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-driver-tar:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-kernel:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-path:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-driver-tzp:7.7.7'
- compile 'de.schlichtherle.truezip:truezip-driver-http:7.7.7'
- compile 'commons-cli:commons-cli:1.3-SNAPSHOT'
- compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.1'
- compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.1'
- compile group: 'org.apache.logging.log4j', name: 'log4j-iostreams', version: '2.1'
- compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.1'
- compile 'org.fusesource.jansi:jansi:1.11'
- compile 'org.jgrapht:jgrapht-core:0.9.0'
- compile(project(':ToolKit')) {
- transitive = false
- }
- }
|