-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
71 lines (55 loc) · 1.59 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
organization := "ch.epfl.scala"
name := "versions"
version := "0.2.1"
scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.6")
libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "1.0.0",
"org.scalatest" %% "scalatest" % "3.0.4" % Test
)
libraryDependencies ++= {
if (scalaBinaryVersion.value == "2.10") {
Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full))
} else Seq()
}
description := "Library to parse and order versions"
// publishing:
commands += Command.command("ci-release") { s =>
"clean" ::
"versions/publishSigned" ::
"sonatypeReleaseAll" ::
s
}
publishTo := Some(
if (isSnapshot.value) Opts.resolver.sonatypeSnapshots
else Opts.resolver.sonatypeStaging
)
sonatypeProfileName := "ch.epfl.scala"
publishMavenStyle := true
licenses += ("BSD", url("http://opensource.org/licenses/BSD-3-Clause"))
homepage := Some(url("https://github.com/scalacenter/versions"))
scmInfo := Some(
ScmInfo(
url("https://github.com/scalacenter/versions"),
"scm:git@github.com:scalacenter/versions.git"
)
)
developers := List(
Developer(
id = "MasseGuillaume",
name = "Guillaume Massé",
email = "masgui@gmail.com",
url = url("https://github.com/MasseGuillaume/")
)
)
credentials ++= (for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield
Credentials(
"Sonatype Nexus Repository Manager",
"oss.sonatype.org",
username,
password)
).toSeq
PgpKeys.pgpPassphrase in Global := sys.env.get("PGP_PASSPHRASE").map(_.toCharArray())