=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
This commit is contained in:
Patrik Nordwall 2013-12-15 12:07:39 +01:00
parent f5791a2c35
commit 8076c784ec

View file

@ -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,