# HG changeset patch # User sugi # Date 1397634539 -32400 # Node ID c81dff5460b05b16d6900aba2e422a0167614313 # Parent dba0d22e15d9892fb6645315fb1f73aaaa5527c1 add build.gradle diff -r dba0d22e15d9 -r c81dff5460b0 build.gradle --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/build.gradle Wed Apr 16 16:48:59 2014 +0900 @@ -0,0 +1,44 @@ +apply plugin: 'java' +apply plugin: 'eclipse' + +version = '1.0' + +dependencies { + compile fileTree(dir: 'lib', include: '*.jar') + runtime fileTree(dir: 'lib', include: '*.jar') + testCompile group: 'junit', name: 'junit', version: '4.+' +} + +jar { + copy { + from configurations.compile + into 'app/lib' + } + + def manifestClasspath = configurations.compile.collect{ 'lib/' + it.getName() }.join(' ') + manifest { + attributes 'Implementation-Title': 'Gradle Quickstart' + attributes 'Implementation-Version': version + attributes 'Main-Class' : 'org.gradle.GradleMain' + attributes 'Class-Path': manifestClasspath + } + + from (configurations.compile.resolve().collect { it.isDirectory() ? it : fileTree(it) }) { + exclude 'META-INF/MANIFEST.MF' + exclude 'META-INF/*.SF' + exclude 'META-INF/*.DSA' + exclude 'META-INF/*.RSA' + exclude '**/*.jar' + } + + destinationDir = file('app') + archiveName = 'GradleTest.jar' +} + +repositories { + mavenCentral() +} + +test { + systemProperties 'property': 'value' +}