forked from kaliber-scala/scala-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
79 lines (69 loc) · 2.67 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
import com.typesafe.sbt.SbtScalariform
import com.typesafe.sbt.SbtScalariform._
import scalariform.formatter.preferences._
import ReleaseTransformations._
name := "scala-pdf"
organization := "com.viajobien"
scalaVersion := "2.12.6"
crossScalaVersions := Seq("2.10.7", "2.11.12", scalaVersion.value)
lazy val root = project in file(".")
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
org.scalastyle.sbt.ScalastylePlugin.autoImport.scalastyleFailOnError := true
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.autoImport.scalastyle.in(Compile).toTask("").value
compileScalastyle in Compile := (compileScalastyle in Compile).dependsOn(SbtScalariform.autoImport.scalariformFormat in Compile).value
compile in Compile := (compile in Compile).dependsOn(compileScalastyle in Compile).value
ScalariformKeys.preferences := ScalariformKeys.preferences.value
.setPreference(DoubleIndentConstructorArguments, true)
.setPreference(DoubleIndentMethodDeclaration, true)
.setPreference(AlignSingleLineCaseStatements, true)
.setPreference(SpacesAroundMultiImports, true)
coverageMinimum := 90
coverageFailOnMinimum := true
libraryDependencies ++= {
val flyingSaucerVersion = "9.0.8"
Seq(
"org.xhtmlrenderer" % "flying-saucer-core" % flyingSaucerVersion,
"org.xhtmlrenderer" % "flying-saucer-pdf" % flyingSaucerVersion,
"net.sf.jtidy" % "jtidy" % "r938",
"org.scalatest" %% "scalatest" % "3.0.5" % Test
)
}
releaseVersionBump := sbtrelease.Version.Bump.Minor
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
// For non cross-build projects, use releaseStepCommand("publishSigned")
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
credentials += Credentials(Path.userHome / ".ivy2" / ".vb_sonatype")
sonatypeProfileName := organization.value
publishMavenStyle := true
publishTo := sonatypePublishTo.value
publishConfiguration := publishConfiguration.value.withOverwrite(true)
publishLocalConfiguration := publishLocalConfiguration.value.withOverwrite(true)
homepage := Some(url("https://github.com/viajobien/scala-pdf"))
licenses := Seq("MIT License" -> url("http://opensource.org/licenses/mit-license.php"))
scmInfo := Some(
ScmInfo(
url("https://github.com/viajobien/scala-pdf"),
"scm:[email protected]:viajobien/scala-pdf.git"
)
)
developers := List(
Developer(
id = "LeonhardtDavid",
name = "David Leonhardt",
email = "[email protected]",
url = url("https://github.com/LeonhardtDavid")
)
)