forked from gwen-interpreter/gwen-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
75 lines (65 loc) · 2.64 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import sbt.Keys.{description, homepage}
// Use file URI for gwen dep until sbt issue 1284 is fixed: https://github.com/sbt/sbt/issues/1284
lazy val gwen = ProjectRef(file("../gwen"), "root")
// lazy val gwen = ProjectRef(uri("git://github.com/gwen-interpreter/gwen.git"), "gwen")
resolvers ++= Seq(
"Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)
lazy val gwenWebSettings = Seq(
name := "gwen-web",
description := "Web automation engine for Gwen",
organization := "org.gweninterpreter",
organizationHomepage := Some(url("http://gweninterpreter.org")),
startYear := Some(2014),
scalaVersion := "2.12.8",
crossPaths := false,
trapExit := false,
scalacOptions ++= Seq(
"-feature",
"-language:postfixOps",
"-deprecation",
"-target:jvm-1.8"
),
licenses += "Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"),
homepage := Some(url("https://github.com/gwen-interpreter/gwen-web"))
)
lazy val commonDependencies = {
val commonsIO = "2.6"
val selenium = "3.141.59"
val appliTools = "3.150.0"
Seq(
"commons-io" % "commons-io" % commonsIO,
"org.seleniumhq.selenium" % "selenium-chrome-driver" % selenium,
"org.seleniumhq.selenium" % "selenium-firefox-driver" % selenium,
"org.seleniumhq.selenium" % "selenium-ie-driver" % selenium,
"org.seleniumhq.selenium" % "selenium-safari-driver" % selenium,
"org.seleniumhq.selenium" % "selenium-support" % selenium excludeAll ExclusionRule(organization = "junit", name = "junit"),
"com.applitools" % "eyes-selenium-java3" % appliTools excludeAll(
ExclusionRule(organization = "org.apache.ant", name = "ant"),
ExclusionRule(organization = "org.aspectj", name = "aspectjweaver"),
ExclusionRule(organization = "org.openpnp", name = "opencv"),
ExclusionRule(organization = "org.seleniumhq.selenium", name = "selenium-java"),
ExclusionRule(organization = "org.springframework", name = "spring-context")
)
)
}
lazy val testDependencies = {
val scalaTest = "3.0.5"
val mockitoAll = "1.10.19"
Seq(
"org.scalatest" %% "scalatest" % scalaTest,
"org.mockito" % "mockito-all" % mockitoAll
).map(_ % Test)
}
val gwenWeb = (project in file(".")).settings(
gwenWebSettings,
libraryDependencies ++= commonDependencies ++ testDependencies
) dependsOn gwen
mappings in(Compile, packageBin) ++= Seq(
file("README.md") -> "README.txt",
file("LICENSE") -> "LICENSE.txt",
file("NOTICE") -> "NOTICE.txt",
file("LICENSE-THIRDPARTY") -> "LICENSE-THIRDPARTY.txt",
file("CHANGELOG") -> "CHANGELOG.txt"
)