changeset 1:c1d20b4096aa

Initial gradle build.
author Mario Torre <neugens.limasoftware@gmail.com>
date Tue, 01 Jan 2013 23:28:45 +0100
parents 8faa914b76a4
children 94d56c93fd16
files .hgignore build.gradle pom.xml
diffstat 3 files changed, 21 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Tue Dec 11 20:01:55 2012 +0100
+++ b/.hgignore	Tue Jan 01 23:28:45 2013 +0100
@@ -13,3 +13,5 @@
 *~
 nbactions*.xml
 nb-configuration.xml
+.gradle
+build/*
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build.gradle	Tue Jan 01 23:28:45 2013 +0100
@@ -0,0 +1,18 @@
+apply plugin: 'java'
+apply plugin: 'eclipse'
+
+sourceCompatibility = 1.7
+targetCompatibility = 1.7
+
+compileJava.doFirst {
+    options.define(compilerArgs: [
+        '-XDignore.symbol.file',
+        '-encoding', 'utf-8',
+        '-source', sourceCompatibility,
+        '-target', targetCompatibility,
+        '-nowarn' 
+    ])
+    options.fork = true
+    options.forkOptions.executable = 'javac'
+}
+
--- a/pom.xml	Tue Dec 11 20:01:55 2012 +0100
+++ b/pom.xml	Tue Jan 01 23:28:45 2013 +0100
@@ -8,9 +8,8 @@
   <artifactId>dolphin</artifactId>
   <version>0.5.1-SNAPSHOT</version>
   <packaging>bundle</packaging>
-    
+  
   <properties>
-    <java.dir>/usr/share/java</java.dir>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>