This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sbt
122 lines (96 loc) · 2.93 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* basic project info */
name := "allure-scalatest"
organization := "ru.yandex.qatools.allure"
description := "Scalatest adapter for Allure framework."
homepage := Some(url("https://github.com/allure-framework/allure-scalatest"))
startYear := Some(2014)
licenses := Seq(
("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
)
scmInfo := Some(
ScmInfo(
url("https://github.com/allure-framework/allure-scalatest"),
"scm:git:https://github.com/allure-framework/allure-scalatest.git",
Some("scm:git:[email protected]:allure-framework/allure-scalatest.git")
)
)
organizationName := "Yandex LLC"
/* scala versions and options */
scalaVersion := "2.12.7"
crossScalaVersions := Seq()
// These options will be used for *all* versions.
scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-encoding", "UTF-8"
// "-Xcheckinit" // for debugging only, see https://github.com/paulp/scala-faq/wiki/Initialization-Order
// "-optimise" // this option will slow your build
)
// These language flags will be used only for 2.10.x.
// Uncomment those you need, or if you hate SIP-18, all of them.
scalacOptions ++= {
val sv = scalaVersion.value
if (sv startsWith "2.10") List(
"-Xverify",
"-Ywarn-all",
"-feature"
// "-language:postfixOps",
// "-language:reflectiveCalls",
// "-language:implicitConversions"
// "-language:higherKinds",
// "-language:existentials",
// "-language:experimental.macros",
// "-language:experimental.dynamics"
)
else Nil
}
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7")
/* dependencies */
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
libraryDependencies ++= Seq (
"org.scalatest" %% "scalatest" % "3.0.5",
"ru.yandex.qatools.allure" % "allure-java-aspects" % "1.5.4",
"org.mockito" % "mockito-core" % "2.23.0" % "test"
)
/* testing */
parallelExecution in Test := false
/* sbt behavior */
logLevel in compile := Level.Warn
traceLevel := 5
offline := false
/* publishing */
publishMavenStyle := true
// Add sonatype repository settings
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
import ReleaseTransformations._
releasePublishArtifactsAction := PgpKeys.publishSigned.value // Use publishSigned in publishArtifacts step
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
pomExtra := <developers>
<developer>
<id>vania-pooh</id>
<name>Ivan Krutov</name>
<email>[email protected]</email>
<url>http://allure.qatools.ru/</url>
</developer>
</developers>