Added SonarQube plugin to build.sbt

This commit is contained in:
Šesták Vít
2017-01-03 14:34:49 +01:00
parent 265ee1dd95
commit a85a944088
2 changed files with 8 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ name := """odc-analyzer"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
lazy val root = (project in file(".")).enablePlugins(PlayScala).enablePlugins(SonarRunnerPlugin)
scalaVersion := "2.11.8"
@@ -98,6 +98,9 @@ routesImport += "binders.QueryBinders._"
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
val sonarEnvPrefix = sys.props.getOrElse("sonarEnvPrefix", "sonar_")
sonarProperties ++= sys.env.filter(_._1.startsWith(sonarEnvPrefix)).map{case (k, v) => k.drop(sonarEnvPrefix.length).replace('_', '.') -> v}
scalacOptions ++= Seq(
"-deprecation", // Emit warning and location for usages of deprecated APIs.

View File

@@ -14,3 +14,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")
// Other plugins
addSbtPlugin("com.aol.sbt" % "sbt-sonarrunner-plugin" % "1.0.4")