forked from ldaume/headless-chrome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (45 loc) · 1.78 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
// Project name (artifact name in Maven)
name := """headless-chrome"""
// orgnization name (e.g., the package name of the project)
organization := "software.reinvent"
version := "0.2.0-SNAPSHOT"
//version := "0.1.4"
scalaVersion := "2.12.1"
// project description
description := "Implementation of the new headless chrome with chromedriver and selenium."
// Enables publishing to maven repo
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://maven.reinvent-software.de/nexus/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "content/repositories/releases")
}
overridePublishBothSettings
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
// Do not append Scala versions to the generated artifacts
crossPaths := false
// This forbids including Scala related libraries into the dependency
autoScalaLibrary := false
resolvers ++= Seq(
Resolver.mavenLocal,
"ReInvent Software OSS" at "https://maven.reinvent-software.de/nexus/content/groups/public"
)
libraryDependencies ++= Seq(
// Commons
"software.reinvent" % "commons" % "0.3.2",
// chrome
"org.seleniumhq.selenium" % "selenium-chrome-driver" % "3.4.0",
"com.assertthat" % "selenium-shutterbug" % "0.6.1",
// TEST
"org.assertj" % "assertj-core" % "3.8.0" % "test",
"org.assertj" % "assertj-guava" % "3.1.0" % "test" exclude("com.google.guava", "guava"),
"com.novocode" % "junit-interface" % "0.11" % "test->default",
"org.jukito" % "jukito" % "1.5" % "test"
)
scalacOptions in Test ++= Seq("-Yrangepos")
dependencyUpdatesFailBuild := true
//dependencyUpdatesExclusions := moduleFilter(organization = "software.reinvent")