This repository has been archived by the owner on Aug 31, 2018. It is now read-only.
forked from sritchie/sbt-gitflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
59 lines (47 loc) · 1.56 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
import sbt._
import Defaults._
organization := "com.twitter"
name := "sbt-gitflow"
version := "0.1.0"
resolvers += Resolver.url(
"sbt-plugin-releases",
new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/")
)(Resolver.ivyStylePatterns)
sbtPlugin := true
// Publishing options:
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
libraryDependencies += sbtPluginExtra(
m = "com.github.gseitz" % "sbt-release" % "0.8", // Plugin module name and version
sbtV = "0.13.0", // SBT version
scalaV = "2.10" // Scala version compiled the plugin
)
credentials += Credentials(Path.userHome / ".m2" / "nexus-credentials")
publishTo <<= version { (v: String) =>
val nexus = "http://repository.ba-group.fi/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots/")
else
Some("snapshots" at nexus + "content/repositories/releases/")
}
pomExtra := <url>https://github.com/sritchie/sbt-gitflow</url>
<licenses>
<license>
<name>Apache 2</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>[email protected]:sritchie/sbt-gitflow.git</url>
<connection>scm:git:[email protected]:sritchie/sbt-gitflow.git</connection>
</scm>
<developers>
<developer>
<id>sritchie</id>
<name>Sam Ritchie</name>
<url>http://twitter.com/sritchie</url>
</developer>
</developers>