forked from SimonJPegg/scoozie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
102 lines (78 loc) · 2.68 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
93
94
95
96
97
98
99
100
101
102
import ReleaseTransformations._
name := "scoozie"
organization := "org.antipathy"
description := "Oozie artifact builder and validator"
scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.10.7","2.11.12", scalaVersion.value)
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-feature")
licenses := Seq((
"Apache License, Version 2.0",
url("https://github.com/SimonJPegg/scoozie/blob/master/LICENSE")
))
developers := List(
Developer(
"SimonJPegg",
"Ciaran Kearney",
url("http://www.antipathy.org")
))
homepage := Some(url("https://github.com/SimonJPegg/scoozie"))
scmInfo := Some(
ScmInfo(
url("https://github.com/SimonJPegg/scoozie"),
"[email protected]:SimonJPegg/scoozie.git",
Some("[email protected]:SimonJPegg/scoozie.git")
))
libraryDependencies ++= Seq(
"org.apache.commons" % "commons-lang3" % "3.8" % "compile",
"commons-io" % "commons-io" % "2.6" % "compile",
"xerces" % "xercesImpl" % "2.11.0" % "compile",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.typesafe" % "config" % "1.3.3",
"org.zeroturnaround" % "zt-zip" % "1.13"
)
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, scalaMajor)) if scalaMajor >= 11 =>
scalacOptions ++= Seq( "-Yrangepos", "-Ywarn-unused-import" )
libraryDependencies.value ++ Seq(
compilerPlugin(scalafixSemanticdb),
"org.scala-lang.modules" %% "scala-xml" % "1.1.1",
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.1",
"org.scala-lang.modules" %% "scala-swing" % "2.0.3",
"com.github.pathikrit" %% "better-files" % "3.7.0")
case _ =>
libraryDependencies.value ++ Seq(
"org.scala-lang" % "scala-swing" % "2.10.7",
"com.github.pathikrit" %% "better-files" % "2.17.0"
)
}
}
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")
publishTo := sonatypePublishTo.value
sonatypeProfileName := "org.antipathy"
publishMavenStyle := true
publishArtifact in Test := false
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
parallelExecution in Test := false
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
releaseCrossBuild := true
coverageEnabled in (Test, compile) := true
coverageEnabled in (Compile, compile) := false
coverageMinimum := 70
coverageFailOnMinimum := true
scalafmtOnCompile := true