This repository has been archived by the owner on Aug 24, 2019. It is now read-only.
/
build.sbt
62 lines (52 loc) · 1.53 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
organization := "info.hupel"
name := "classy"
crossPaths := false
autoScalaLibrary := false
homepage := Some(url("http://lars.hupel.info/libisabelle/"))
licenses := Seq("MIT" -> url("http://opensource.org/licenses/MIT"))
enablePlugins(LibisabellePlugin)
moduleName := name.value
isabelleVersions ~= {
case Seq() => List(Version.Stable("2017"), Version.Stable("2018"), Version.Stable("2019-RC0"))
case ver => ver
}
isabelleSessions in Compile := List("Classy")
libraryDependencies += "info.hupel" % "multi-isabelle" % "0.1.2"
pomExtra := (
<developers>
<developer>
<id>larsrh</id>
<name>Lars Hupel</name>
<url>http://lars.hupel.info</url>
</developer>
</developers>
<scm>
<connection>scm:git:github.com/larsrh/classy.git</connection>
<developerConnection>scm:git:git@github.com:larsrh/classy.git</developerConnection>
<url>https://github.com/larsrh/multi-isabelle</url>
</scm>
)
credentials += Credentials(
Option(System.getProperty("build.publish.credentials")) map (new File(_)) getOrElse (Path.userHome / ".ivy2" / ".credentials")
)
// Release stuff
import ReleaseTransformations._
releaseVcsSign := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeRelease")
)
publishTo := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
)