Hi,

back on a java project, I'm translating our build from maven to buildr
(with some maven black magic I would like to kill).
I have a JDK 7 installed but I want to compile to java 6 (our sources
are in java 6), so I wrote in my buildfile :

compile.using :target => '1.6', :other => ['-encoding', 'UTF-8'],
:deprecation => false, :debug => true

But when I run buildr, I've got the following error :
javac: target release 1.6 conflicts with default source release 1.7

What's wrong with my setup or my buildfile ?


Installed versions :
$ java -version     # downloaded from oracle and fully working with maven
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

$ buildr --version  # installed via apt-get on last stable ubuntu
Buildr 1.4.12

$ uname -a
Linux totoro 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC
2013 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/issue
Ubuntu 13.04


Original pom.xml :
        <java.version>1.6</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Thanks.
-- 
Jean-Philippe Caruana - [email protected]
http://www.target2sell.com

Reply via email to