forked from sirthias/scala-ssh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
55 lines (39 loc) · 1.51 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
name := "scala-ssh"
version := "0.6.4"
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.10.2"
scalacOptions <<= scalaVersion map {
case x if x startsWith "2.9" =>
Seq("-unchecked", "-deprecation", "-encoding", "utf8")
case x if x startsWith "2.10" =>
Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
}
libraryDependencies ++= Seq(
"net.schmizz" % "sshj" % "0.8.1",
"org.slf4j" % "slf4j-api" % "1.7.5",
"org.bouncycastle" % "bcprov-jdk16" % "1.46" % "provided",
"com.jcraft" % "jzlib" % "1.1.2" % "provided",
"org.specs2" %% "specs2" % "[1.12,)" % "test",
"ch.qos.logback" % "logback-classic" % "1.0.13" % "test"
)
///////////////
// publishing
///////////////
crossScalaVersions := Seq("2.9.3", "2.10.2")
scalaBinaryVersion <<= scalaVersion(sV => if (CrossVersion.isStable(sV)) CrossVersion.binaryScalaVersion(sV) else sV)
publishMavenStyle := true
publishTo <<= version { version =>
Some {
"spray repo" at {
// public uri is repo.spray.io, we use an SSH tunnel to the nexus here
"http://localhost:42424/content/repositories/" + {
if (version.trim.endsWith("SNAPSHOT")) "snapshots/" else"releases/"
}
}
}
}