forked from sbt/sbt-testng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (51 loc) · 2.03 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
53
54
55
val v = "3.1.2-SNAPSHOT"
val testngVersion = SettingKey[String]("testngVersion")
val preCompiledInterfaceVersions = SettingKey[Seq[String]]("preCompiledInterfaceVersions")
val interfaceName = "sbt-testng-interface"
lazy val root = Project(id = interfaceName, base = file("."))
.settings(commonSettings: _*)
.settings(
name := interfaceName,
version := v,
crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.3", "2.13.0-M2"),
libraryDependencies ++= Seq(
"org.scala-sbt" % "test-interface" % "1.0" % "provided",
"org.testng" % "testng" % testngVersion.value % "provided"))
lazy val testNGPlugin = Project(id = "sbt-testng-plugin", base = file("plugin"))
.enablePlugins(BuildInfoPlugin)
.settings(scriptedSettings)
.settings(commonSettings: _*)
.settings(
preCompiledInterfaceVersions := (crossScalaVersions in root).value.map(
CrossVersion.binaryScalaVersion(_)
),
buildInfoKeys := Seq[BuildInfoKey](
organization,
version,
testngVersion,
preCompiledInterfaceVersions,
"interfaceName" -> interfaceName
),
buildInfoObject := "TestNGPluginBuildInfo",
buildInfoPackage := "de.johoop.testngplugin",
sbtPlugin := true,
version := v,
scriptedBufferLog := false,
scriptedLaunchOpts ++= sys.process.javaVmArguments.filter(
a => Seq("-Xmx", "-Xms", "-XX", "-Dsbt.log.noformat").exists(a.startsWith)
),
scriptedLaunchOpts += ("-Dplugin.version=" + version.value),
scalacOptions += "-language:_")
lazy val commonSettings: Seq[Setting[_]] = publishSettings ++ Seq(
crossSbtVersions := Seq("0.13.16", "1.0.0"),
organization := "de.johoop",
testngVersion := "6.11",
scalacOptions ++= Seq("-unchecked", "-deprecation"))
lazy val publishSettings: Seq[Setting[_]] = Seq(
bintrayOrganization := Some("sbt"),
bintrayRepository := "sbt-plugin-releases",
bintrayPackage := "sbt-testng-plugin-imported",
publishArtifact in Test := false,
publishMavenStyle := false,
licenses += ("BSD", url("http://opensource.org/licenses/BSD-3-Clause"))
)