I thought it was possible by setting the java version to 1.8 ( java.runtime.version=1.8inside system.properties). But when I tried to compile the project using activator compile, I got all kinds of errors not found: type LocalDateTime.
java.runtime.version=1.8
system.properties
activator compile
not found: type LocalDateTime
Am I doing something wrong (by configuration)? Is there a way to overcome this problem or is this a known limitation?
I use
Play framework: 2.3.8
Scala: 2.11.6
Sbt: 0.13.7
First check the java version: in cmd - java --version(should point to your installed java).
java --version
, "" java 1.8, build.sbt
build.sbt
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
:)