-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
58 lines (49 loc) · 1.71 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
import de.heikoseeberger.sbtheader.license.Apache2_0
name := "scalenium"
organization := "com.markatta"
scalaVersion := "2.12.2"
crossScalaVersions := Seq(scalaVersion.value, "2.11.11", "2.10.6")
scalacOptions ++= Seq("-feature", "-deprecation")
libraryDependencies ++= Seq(
"org.seleniumhq.selenium" % "selenium-java" % "2.44.0",
// this should probably be an optional dependency somehow, extract specs2 integration to separate module?
"org.specs2" %% "specs2" % "2.4.17"
)
resolvers ++= Seq(
// required for the scalaz-streams dependency from specs2 :(
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
)
initialCommands := """
import com.markatta.scalenium._
val browser = new Browser(new org.openqa.selenium.htmlunit.HtmlUnitDriver)
"""
headers := Map(
"scala" -> Apache2_0("2015", "Johan Andrén")
)
// releasing
sonatypeSettings
licenses := Seq("Apache License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/johanandren/scalenium"))
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := Some {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
"snapshots" at nexus + "content/repositories/snapshots"
else
"releases" at nexus + "service/local/staging/deploy/maven2"
}
pomExtra :=
<scm>
<url>git@github.com:johanandren/scalenium.git</url>
<connection>scm:git:git@github.com:johanandren/scalenium.git</connection>
</scm>
<developers>
<developer>
<id>johanandren</id>
<name>Johan Andrén</name>
<email>johan@markatta.com</email>
<url>https://markatta.com/johan/codemonkey</url>
</developer>
</developers>