-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.sbt
78 lines (58 loc) · 2.27 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
import scalariform.formatter.preferences._
name := "scala-ssh"
version := "0.8.0"
organization := "com.veact"
organizationHomepage := Some(new URL("http://veact.com"))
description := "A Scala library providing remote shell access via SSH"
homepage := Some(new URL("https://github.com/veact/scala-ssh"))
startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalaVersion := "2.11.8"
scalacOptions ++= Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
libraryDependencies ++= Seq(
"com.hierynomus" % "sshj" % "0.16.0",
"org.slf4j" % "slf4j-api" % "1.7.21",
"org.bouncycastle" % "bcprov-jdk15on" % "1.54" % "provided",
"com.jcraft" % "jzlib" % "1.1.3" % "provided",
"com.jcraft" % "jsch.agentproxy.sshj" % "0.0.9",
"com.jcraft" % "jsch.agentproxy.connector-factory" % "0.0.9",
"ch.qos.logback" % "logback-classic" % "1.1.7" % "test",
"org.specs2" %% "specs2" % "2.5" % "test")
resolvers += "Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases"
scalariformSettings
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(RewriteArrowSymbols, true)
.setPreference(AlignParameters, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(DoubleIndentClassDeclaration, true)
.setPreference(PreserveDanglingCloseParenthesis, true)
///////////////
// publishing
///////////////
crossScalaVersions := Seq("2.10.6", "2.11.8")
publishMavenStyle := true
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }
pomExtra :=
<scm>
<url>[email protected]:veact/scala-ssh.git</url>
<connection>scm:git:[email protected]:veact/scala-ssh.git</connection>
</scm>
<developers>
<developer>
<id>sirthias</id>
<name>Mathias Doenitz</name>
</developer>
<developer>
<id>laurentco</id>
<name>Laurent Comparet</name>
</developer>
<developer>
<id>bphelan</id>
<name>Benjamin Phelan</name>
</developer>
</developers>