-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
59 lines (42 loc) · 1.72 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
sbtPlugin := true
organization := "com.leobenkel"
homepage := Some(url("https://github.com/leobenkel/umlclassdiagram"))
licenses := List("MIT" -> url("https://opensource.org/licenses/MIT"))
developers :=
List(
Developer(
"leobenkel",
"Leo Benkel",
"",
url("https://leobenkel.com")
)
)
sonatypeCredentialHost := "oss.sonatype.org"
sonatypeRepository := "https://oss.sonatype.org/service/local"
val projectName = IO.readLines(new File("PROJECT_NAME")).head
name := projectName
publishMavenStyle := true
// fail to publish without that
updateOptions := updateOptions.value.withGigahorse(false)
Test / publishArtifact := false
pomIncludeRepository := (_ => false)
resolvers += Resolver.bintrayRepo("scalameta", "maven")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")
libraryDependencies += "commons-logging" % "commons-logging" % "1.2"
libraryDependencies += "org.reflections" % "reflections" % "0.10.2"
// Test
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.14" % Test
import org.scoverage.coveralls.Imports.CoverallsKeys.{coverallsFailBuildOnError, coverallsFile}
// https://www.scala-sbt.org/1.x/docs/Testing-sbt-plugins.html
enablePlugins(SbtPlugin)
scriptedLaunchOpts ++= Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
scriptedBufferLog := false
scriptedParallelInstances := 1
scriptedBatchExecution := false
coverageOutputDebug := true
coverallsFailBuildOnError := true
coverallsFile := baseDirectory.value / "coveralls/coveralls.json"
classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.ScalaLibrary
allowZombieClassLoaders := false
closeClassLoaders := true