-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.sbt
98 lines (69 loc) · 2.6 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import sbt.Keys.version
// Project name (artifact name in Maven)
name := """headless-chrome"""
// orgnization name (e.g., the package name of the project)
organization := "software.reinvent"
// version := "0.4.0-SNAPSHOT"
version := "0.3.6"
version in ThisBuild := s"${version.value}"
scalaVersion := "2.12.4"
// project description
description := "Implementation of the headless chrome with chromedriver and selenium."
resolvers ++= Seq(
Resolver.mavenLocal
)
libraryDependencies ++= Seq(
// Commons
"software.reinvent" % "commons" % "0.3.9",
// chrome
"org.seleniumhq.selenium" % "selenium-chrome-driver" % "3.10.0",
"com.assertthat" % "selenium-shutterbug" % "0.7" exclude("org.seleniumhq.selenium", "selenium-java"),
// TEST
"org.assertj" % "assertj-core" % "3.9.1" % "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
// Enables publishing to maven repo
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
enablePlugins(SignedAetherPlugin)
disablePlugins(AetherPlugin)
publishTo := {
val nexus = "https://maven.reinvent-software.de/nexus/"
if (version.value.trim.endsWith("SNAPSHOT")) {
Some(Opts.resolver.sonatypeSnapshots)
} else {
Some(Opts.resolver.sonatypeReleases)
}
}
overridePublishBothSettings
overridePublishSignedBothSettings
//credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials.sonatype")
// Do not append Scala versions to the generated artifacts
crossPaths := false
// This forbids including Scala related libraries into the dependency
autoScalaLibrary := false
homepage := Some(new URL("https://github.com/ldaume/headless-chrome"))
startYear := Some(2017)
licenses := Seq(("MIT", new URL("https://github.com/ldaume/headless-chrome/blob/master/LICENSE")))
pomExtra <<= (pomExtra, name, description) { (pom, name, desc) =>
pom ++ xml.Group(
<scm>
<url>http://github.com/ldaume/headless-chrome/tree/master</url>
<connection>scm:git:git://github.com:ldaume/headless-chrome.git</connection>
<developerConnection>scm:git:[email protected]:ldaume/headless-chrome.git</developerConnection>
</scm>
<developers>
<developer>
<id>ldaume</id>
<name>Leonard Daume</name>
<url>https://reinvent.software</url>
</developer>
</developers>
)
}