forked from rallyhealth/sbt-git-versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripted.sbt
More file actions
23 lines (20 loc) · 835 Bytes
/
scripted.sbt
File metadata and controls
23 lines (20 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
* All of this comes from http://eed3si9n.com/testing-sbt-plugins
*/
/**
* The scripted sbt projects also need to know any sbt opt overrides. For example:
* - if the .ivy2 location is in another place
* - if logging options should be changed
*/
lazy val defaultSbtOpts = settingKey[Seq[String]]("The contents of the default_sbt_opts env var.")
lazy val javaOptsDebugger = settingKey[String]("Opens a debug port for scripted tests on 8000")
defaultSbtOpts := {
sys.env.get("default_sbt_opts").toSeq ++ sys.env.get("scripted_sbt_opts")
}
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value, javaOptsDebugger.value) ++
defaultSbtOpts.value
}
javaOptsDebugger := "-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n"
scriptedBufferLog := false