forked from pbyrne-mdsol/intellij-cucumber-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (48 loc) · 2.27 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import com.dancingrobot84.sbtidea.Keys._
import sbt.Keys._
name := "Cucumber for Scala"
normalizedName := "intellij-cucumber-scala"
version := "2019.1.3"
scalaVersion := "2.12.4"
lazy val `scala-plugin` = IdeaPlugin.Zip("scala-plugin", url("https://plugins.jetbrains.com/plugin/download?updateId=45268"))
lazy val `cucumber-java` = IdeaPlugin.Zip("cucumber-java", url("https://plugins.jetbrains.com/plugin/download?updateId=43535"))
lazy val gherkin = IdeaPlugin.Zip("gherkin", url("https://plugins.jetbrains.com/plugin/download?updateId=43534"))
lazy val ideaBuildNumber = "191.7479.19"
lazy val `cucumber-scala` = project.in(file( "."))
.enablePlugins(SbtIdeaPlugin)
.enablePlugins(SbtIdeaPluginPimps)
.settings(scalariformSettings)
.settings(
scalaVersion := "2.12.4",
javacOptions in Global ++= Seq("-source", "1.6", "-target", "1.6"),
scalacOptions in Global += "-target:jvm-1.6",
ideaExternalPlugins ++= Seq(`scala-plugin`, gherkin, `cucumber-java`),
// check https://s3-eu-west-1.amazonaws.com/intellij-releases/ for valid builds
ideaBuild in ThisBuild := ideaBuildNumber,
ideaEdition in ThisBuild := IdeaEdition.Community,
ideaPublishSettings := PublishSettings(pluginId = "com.github.danielwegener.cucumber-scala", username = "", password = "", channel = None),
fork in Test := true,
parallelExecution := true,
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
lazy val `runner-cucumber-scala-idea` = project.in(file(s"idea"))
.settings(
autoScalaLibrary := false,
unmanagedBase := baseDirectory.value / s"$ideaBuildNumber/lib",
fork in run := true,
mainClass in(Compile, run) := Some("com.intellij.idea.Main"),
javaOptions in run ++= Seq(
"-Xmx800m",
"-XX:ReservedCodeCacheSize=64m",
"-XX:MaxPermSize=250m",
"-XX:+HeapDumpOnOutOfMemoryError",
"-ea",
"-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005",
"-Didea.is.internal=true",
"-Didea.debug.mode=true",
s"-Didea.plugins.path=idea/$ideaBuildNumber/externalPlugins",
s"-Didea.config.path=idea/$ideaBuildNumber/system",
"-Dapple.laf.useScreenMenuBar=true",
"-Didea.ProcessCanceledException=disabled"
)
)