defaultTasks 'distZip' apply plugin: 'java' apply plugin: 'application' apply from: "$rootDir/utils/IO.gradle" version = '0.4.1.1-SNAPSHOT' mainClassName = 'de.nplusc.izc.iZpl.Main' //'de.nplusc.izc.iZpl.Main' jar{ manifest{ attributes 'Implementation-Title': 'iZPlaylist', 'Implementation-Version': 'SNAPSHOT', 'Main-Class': 'de.nplusc.izc.iZpl.Main' } } startScripts << { def startScriptDir = outputDir.getAbsolutePath() def winStartScript = startScriptDir + "/" + applicationName + ".bat" def winStartScriptCopy = startScriptDir + "/" + applicationName + "dbg.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 '*dbg.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.0.1' 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(project(':ToolKit')) { transitive = false } }