-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
61 lines (45 loc) · 1.68 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
name := "yascli"
organization := "com.github.zhongl"
version := "0.2.0"
scalaVersion := "2.10.0"
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-language:reflectiveCalls")
javacOptions += "-Xlint:unchecked"
resolvers += "Local Maven Repository" at "file://"+Path.userHome.absolutePath+"/.m2/repository"
libraryDependencies := Seq(
"jline" % "jline" % "2.10",
"org.scala-lang" % "scala-library" % "2.10.0",
"org.mockito" % "mockito-all" % "1.9.0" % "test",
"org.scalatest" % "scalatest_2.10" % "1.9.1" % "test"
)
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://zhongl.github.com/yascli</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>
<scm>
<url>git@github.com:zhongl/yascli.git</url>
<connection>scm:git:git@github.com:zhongl/yascli.git</connection>
</scm>
<developers>
<developer>
<id>zhongl</id>
<name>Lunfu Zhong</name>
<url>http://github.com/zhongl</url>
</developer>
</developers>)
// publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
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")
}