-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
92 lines (80 loc) · 2.61 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
organization := "com.github.biopet"
name := "sbt-bioconda"
homepage := Some(url(s"https://github.com/biopet/sbt-bioconda"))
licenses := Seq("MIT" -> url("https://opensource.org/licenses/MIT"))
organizationName := "Sequencing Analysis Support Core - Leiden University Medical Center"
scmInfo := Some(
ScmInfo(
url("https://github.com/biopet/sbt-bioconda"),
"scm:[email protected]:biopet/sbt-bioconda.git"
)
)
startYear := some(2018)
developers := List(
Developer(id = "rhpvorderman",
name = "Ruben Vorderman",
email = "[email protected]",
url = url("https://github.com/rhpvorderman"))
)
publishMavenStyle := true
sbtPlugin := true
scalaVersion := "2.12.6"
useGpg := true
scalafmt := (scalafmt in Compile)
.dependsOn(scalafmt in Test)
.dependsOn(scalafmt in Sbt)
.value
headerCreate := (headerCreate in Compile).dependsOn(headerCreate in Test).value
headerCheck := (headerCheck in Compile).dependsOn(headerCheck in Test).value
publishTo := {
if (isSnapshot.value)
Some(Opts.resolver.sonatypeSnapshots)
else
Some(Opts.resolver.sonatypeStaging)
}
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
}
scriptedBufferLog := false
resolvers += Resolver.sonatypeRepo("snapshots")
resolvers += Resolver.sonatypeRepo("releases")
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
releaseStepCommand("git fetch"),
releaseStepCommand("git checkout master"),
releaseStepCommand("git pull"),
releaseStepCommand("git merge origin/develop"),
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
//releaseStepCommand("ghpagesPushSite"),
releaseStepCommand("publishSigned"),
releaseStepCommand("sonatypeReleaseAll"),
pushChanges,
releaseStepCommand("git checkout develop"),
releaseStepCommand("git merge master"),
setNextVersion,
commitNextVersion,
pushChanges
)
libraryDependencies += "com.github.biopet" %% "common-utils" % "0.6"
libraryDependencies += "org.testng" % "testng" % "6.14.3" % "test"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"
libraryDependencies += "org.kohsuke" % "github-api" % "1.93"
libraryDependencies ++= Seq(
Defaults.sbtPluginExtra(
"ohnosequences" % "sbt-github-release" % "0.7.0",
(sbtBinaryVersion in pluginCrossBuild).value,
(scalaBinaryVersion in pluginCrossBuild).value
),
Defaults.sbtPluginExtra(
"com.typesafe.sbt" % "sbt-git" % "1.0.0",
(sbtBinaryVersion in pluginCrossBuild).value,
(scalaBinaryVersion in pluginCrossBuild).value
)
)