package root

import org.openmole.buildsystem._
import OMKeys._

import sbt._
import Keys._

/**
 * Created with IntelliJ IDEA.
 * User: luft
 * Date: 3/17/13
 * Time: 6:43 PM
 * To change this template use File | Settings | File Templates.
 */
abstract class Defaults(subBuilds: Defaults*) extends BuildSystemDefaults {

  override def subProjects = subBuilds flatMap (_.projectRefs)

  val projectName = "openmole"

  def org = "org.openmole"

  override def settings = super.settings ++
    Seq(version in Global := "3.0-SNAPSHOT",
      scalaVersion in Global := "2.11.2",
      scalacOptions ++= Seq("-deprecation"),
      publishArtifact in (packageDoc in install) := false,
      publishArtifact in (packageSrc in install) := false,
      scalatestVersion in Global := "2.1.5",
      junitVersion in Global := "4.11",
      //concurrentRestrictions := Seq(Tags.limitAll(5), Tags.limit(Tags.Disk, 2)),
      resolvers += Resolver.defaultLocal,
      resolvers += Resolver.sonatypeRepo("snapshots") // for scalatra 2.3
    )
}

package root

import org.openmole.buildsystem._
import OMKeys._

import sbt._
import Keys._

/**
 * Created with IntelliJ IDEA.
 * User: luft
 * Date: 3/17/13
 * Time: 6:43 PM
 * To change this template use File | Settings | File Templates.
 */
abstract class Defaults(subBuilds: Defaults*) extends BuildSystemDefaults {

  override def subProjects = subBuilds flatMap (_.projectRefs)

  val projectName = "openmole"

  def org = "org.openmole"

  override def settings = super.settings ++
    Seq(version in Global := "3.0-SNAPSHOT",
      scalaVersion in Global := "2.11.2",
      scalacOptions ++= Seq("-deprecation"),
      javacOptions ++= Seq("-source", "1.7", "-target", "1.7"),
      scalacOptions += "-target:jvm-1.7",
      publishArtifact in (packageDoc in install) := false,
      publishArtifact in (packageSrc in install) := false,
      scalatestVersion in Global := "2.1.5",
      junitVersion in Global := "4.11",
      //concurrentRestrictions := Seq(Tags.limitAll(5), Tags.limit(Tags.Disk, 2)),
      resolvers += Resolver.defaultLocal,
      resolvers += Resolver.sonatypeRepo("snapshots") // for scalatra 2.3
    )
}

Add java 7 compile options.
Add java 7 compile options.
