Marco Miller 8f9b897594 e2e-tests: Enable postfix operators with compiler
Before this change, the scala compiler issued warnings such as the one
below, upon using the usual 'sbt compile' command.

  "(...) postfix operator second should be enabled
  [warn] by making the implicit value scala.language.postfixOps visible.
  [warn] This can be achieved by adding the import clause 'import scala.language.postfixOps'
  [warn] or by setting the compiler option -language:postfixOps."

Set the latter option in build.sbt to remove these warnings. This is
less invasive than adding the aforementioned import clause in each file.

Bug: Issue 12288
Change-Id: If52dcddbcc63579602c788455a95c5e7d9009ee2
2020-03-27 16:43:42 -04:00

20 lines
644 B
Scala

import Dependencies._
enablePlugins(GatlingPlugin)
lazy val gatlingGitExtension = RootProject(uri("git://github.com/GerritForge/gatling-git.git"))
lazy val root = (project in file("."))
.settings(
inThisBuild(List(
organization := "com.google.gerrit",
scalaVersion := "2.12.8",
version := "0.1.0-SNAPSHOT"
)),
name := "gerrit",
libraryDependencies ++=
gatling ++
Seq("io.gatling" % "gatling-core" % GatlingVersion) ++
Seq("io.gatling" % "gatling-app" % GatlingVersion),
scalacOptions += "-language:postfixOps"
) dependsOn gatlingGitExtension