-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (55 loc) · 1.97 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
lazy val `jawa2java` = project in file(".")
name := "jawa2java"
organization := "com.github.arguslab"
scalaVersion := "2.11.8"
sbtVersion := "0.13.9"
licenses := ("Eclipse-1.0" -> url("http://www.opensource.org/licenses/eclipse-1.0.php")) :: Nil // this is required! otherwise Bintray will reject the code
homepage := Some(url("https://github.com/arguslab/jawa2java"))
libraryDependencies += "org.scalactic" %% "scalactic" % "2.2.6"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.6" % "test"
libraryDependencies += "com.github.arguslab" %% "jawa-compiler" % "0.0.2"
pomExtra :=
<scm>
<url>https://github.com/arguslab/jawa2java</url>
<connection>scm:git:https://github.com/arguslab/jawa2java.git</connection>
</scm>
<developers>
<developer>
<id>fgwei</id>
<name>Fengguo Wei</name>
<url>http://www.arguslab.org/~fgwei/</url>
</developer>
</developers>
// Bintray
bintrayOrganization := Some("arguslab")
bintrayReleaseOnPublish := false
bintrayRepository := "maven"
bintrayPackage := "jawa2java"
import com.typesafe.sbt.pgp.PgpKeys._
lazy val publishSnapshot = taskKey[Unit]("Publish Snapshot -- Custom Task")
publishSnapshot := {
println("Publishing Snapshot ...")
val extracted = Project.extract(state.value)
Project.runTask(publishSigned, extracted.append(Seq(
publishTo := Some("Artifactory Realm" at "http://oss.jfrog.org/artifactory/oss-snapshot-local"),
// Only setting the credentials file if it exists (#52)
credentials := List(Path.userHome / ".bintray" / ".artifactory").filter(_.exists).map(Credentials(_))
), state.value), checkCycles = true)
}
// Release
import ReleaseTransformations._
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
releaseStepTask(bintrayRelease in `jawa2java`),
setNextVersion,
commitNextVersion,
pushChanges
)