From 8076c784ec682772c7b8a5cb3a49488ef39cee65 Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Sun, 15 Dec 2013 12:07:39 +0100 Subject: [PATCH] =pro Fix doc build of java only projects * javadoc complains on the -target flag for projects with only java sources * found solution here: https://groups.google.com/forum/#!topic/simple-build-tool/I75AODwFlH0 --- project/AkkaBuild.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/AkkaBuild.scala b/project/AkkaBuild.scala index 4e809bb370..33ad115091 100644 --- a/project/AkkaBuild.scala +++ b/project/AkkaBuild.scala @@ -802,7 +802,8 @@ object AkkaBuild extends Build { Protobuf.settings ++ Seq( // compile options scalacOptions in Compile ++= Seq("-encoding", "UTF-8", "-target:jvm-1.6", "-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"), - javacOptions in Compile ++= Seq("-encoding", "UTF-8", "-source", "1.6", "-target", "1.6", "-Xlint:unchecked", "-Xlint:deprecation"), + javacOptions in compile ++= Seq("-encoding", "UTF-8", "-source", "1.6", "-target", "1.6", "-Xlint:unchecked", "-Xlint:deprecation"), + javacOptions in doc ++= Seq("-encoding", "UTF-8", "-source", "1.6"), // if changing this between binary and full, also change at the bottom of akka-sbt-plugin/sample/project/Build.scala crossVersion := CrossVersion.binary,