This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
73 lines (60 loc) · 1.89 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
import sbt.url
import sbtrelease.ReleaseStateTransformations._
enablePlugins(SbtPlugin)
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.3")
name := "sbt-paradox-diagrams"
organization := "com.wanari"
organizationName := "Wanari Ltd."
scalaVersion := "2.12.17"
scalafmtOnCompile := true
sbtPlugin := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
releaseStepCommandAndRemaining("sonatypeReleaseAll"),
pushChanges
)
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/TeamWanari/sbt-paradox-diagrams"))
scmInfo := Some(
ScmInfo(
url("https://github.com/TeamWanari/sbt-paradox-diagrams"),
"scm:[email protected]:TeamWanari/sbt-paradox-diagrams.git"
)
)
developers := List(
Developer(
"tg44",
"Gergo Torcsvari",
url("https://github.com/tg44")
)
)
publishM2 := {
publishM2.value
val d = file(
sys.env("HOME")
) / s".m2/repository/com/wanari/sbt-paradox-diagrams_${scalaBinaryVersion.value}_${sbtBinaryVersion.value}"
d.renameTo(file(sys.env("HOME")) / ".m2/repository/com/wanari/sbt-paradox-diagrams")
}
import scala.collection.JavaConverters._
scriptedLaunchOpts += ("-Dproject.version=" + version.value)
scriptedLaunchOpts ++= java.lang.management.ManagementFactory.getRuntimeMXBean.getInputArguments.asScala.filter(a =>
Seq("-Xmx", "-Xms", "-XX", "-Dfile").exists(a.startsWith)
)
lazy val debugScripted = if (sys.env.getOrElse("DEBUG_SCRIPTED", "false").toBoolean) {
"y"
} else {
"n"
}
scriptedLaunchOpts += (s"-agentlib:jdwp=transport=dt_socket,server=y,suspend=${debugScripted},address=0")
scriptedBufferLog := false