diff build.gradle @ 346:d46c42352e4f

change images position. It is under src/main/resources
author sugi
date Mon, 21 Apr 2014 19:57:44 +0900
parents c81dff5460b0
children bef74861969a
line wrap: on
line diff
--- a/build.gradle	Wed Apr 16 18:26:07 2014 +0900
+++ b/build.gradle	Mon Apr 21 19:57:44 2014 +0900
@@ -1,44 +1,20 @@
 apply plugin: 'java'
 apply plugin: 'eclipse'
 
+sourceCompatibility = 1.6
+targetCompatibility = 1.6
+[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
 version = '1.0'
 
 dependencies {
-    compile fileTree(dir: 'lib', include: '*.jar')
-    runtime fileTree(dir: 'lib', include: '*.jar')
     testCompile group: 'junit', name: 'junit', version: '4.+'
+   	compile fileTree(dir: 'lib', include: '*.jar')
 }
 
 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
+        attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
     }
-    
-    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'
+    from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
+	archiveName = 'Alice.jar'
 }
-
-repositories {
-    mavenCentral()
-}
-
-test {
-    systemProperties 'property': 'value'
-}