I am working on building an assembly on jenkins.
The distribution is Centos 7 x64 using sbt 0.13.7 and Play Framework 2.3.6 (if that makes any difference).
Java 8 installed correctly:
bash-4.2$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
SBT has, I believe, the correct configuration to compile in Java 8.
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint")
And still I get this error during sbt compile
[info] Compiling 13 Scala sources and 18 Java sources to /var/lib/jenkins/workspace/super-webapp/target/scala-2.10/classes...
[error] javac: invalid source release: 1.8
[error] Usage: javac <options> <source files>
I am not a linux expert, is there anything I need to know the environment for it to work?
source
share