forked from sirthias/scala-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
70 lines (49 loc) · 2.01 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
import scalariform.formatter.preferences._
name := "scala-ssh"
version := "0.7.2"
organization := "com.decodified"
organizationHomepage := Some(new URL("http://decodified.com"))
description := "A Scala library providing remote shell access via SSH"
homepage := Some(new URL("https://github.com/sirthias/scala-ssh"))
startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalaVersion := "2.11.6"
scalacOptions ++= Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
libraryDependencies ++= Seq(
"com.hierynomus" % "sshj" % "0.12.0",
"org.slf4j" % "slf4j-api" % "1.7.7",
"org.bouncycastle" % "bcprov-jdk16" % "1.46" % "provided",
"com.jcraft" % "jzlib" % "1.1.3" % "provided",
"ch.qos.logback" % "logback-classic" % "1.1.2" % "test",
"org.specs2" %% "specs2" % "2.4.6" % "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.4", "2.11.2")
publishMavenStyle := true
useGpg := 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]:sirthias/scala-ssh.git</url>
<connection>scm:git:[email protected]:sirthias/scala-ssh.git</connection>
</scm>
<developers>
<developer>
<id>sirthias</id>
<name>Mathias Doenitz</name>
</developer>
</developers>