This repository has been archived by the owner on Jul 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
77 lines (59 loc) · 1.82 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
import sbtrelease._
import ReleasePlugin._
import ReleaseStateTransformations._
import com.typesafe.sbt.pgp.PgpKeys
sbtPlugin := true
name := "sbt-jarjar"
organization := "com.tapad"
scalaVersion := "2.10.6"
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo := {
val nexus = "https://oss.sonatype.org"
if (isSnapshot.value)
Some("snapshots" at s"${nexus}/content/repositories/snapshots")
else
Some("releases" at s"${nexus}/service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<url>http://github.com/Tapad/sbt-jarjar</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://opensource.org/licenses/BSD-3-Clause</url>
</license>
</licenses>
<scm>
<url>[email protected]:Tapad/sbt-jarjar.git</url>
<connection>scm:git:[email protected]:Tapad/sbt-jarjar.git</connection>
</scm>
<developers>
<developer>
<id>[email protected]</id>
<name>Jeffrey Olchovy</name>
<url>http://github.com/jeffreyolchovy</url>
</developer>
</developers>
)
PgpKeys.useGpg := true
PgpKeys.gpgCommand := "/usr/local/bin/gpg2"
releaseSettings
ReleaseKeys.nextVersion := { (version: String) => Version(version).map(_.bumpBugfix.asSnapshot.string).getOrElse(versionFormatError) }
ReleaseKeys.releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)
ScriptedPlugin.scriptedSettings
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-XX:MaxPermSize=256M", "-Dplugin.version=" + version.value)
scriptedBufferLog := false