-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.sbt
More file actions
55 lines (33 loc) · 1.7 KB
/
build.sbt
File metadata and controls
55 lines (33 loc) · 1.7 KB
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
import de.johoop.jacoco4sbt.XMLReport
name := "solidFire-sdk-java"
val major_version = "12"
val minor_version = "3"
val patch_version = "0"
lazy val build_number = sys.env.get("BUILD_NUMBER")
def isBlank(input: Option[String]): Boolean =
input.filterNot(s => s == null || s.trim.isEmpty).isEmpty
val my_build_number = if (isBlank(build_number)){
"123"
} else {
build_number.get
}
version := major_version + "." + minor_version + "." + patch_version + "." + my_build_number
exportJars := false
fork in run := true
ivyConfiguration <<= (externalResolvers, ivyPaths, offline, checksums, appConfiguration, target, streams) map { ( rs, paths, off, check, app, t, s ) =>
val resCacheDir = t / "resolution-cache"
new InlineIvyConfiguration( paths, rs, Nil, Nil, off, None, check, Some( resCacheDir ), s.log )
}
evictionWarningOptions in update := EvictionWarningOptions.default.withWarnTransitiveEvictions( false ).withWarnDirectEvictions( false ).withWarnScalaVersionEviction( false )
logLevel := Level.Info
testOptions += Tests.Argument( TestFrameworks.JUnit, "-q", "-v" )
packageOptions in(Compile, packageBin) += Package.ManifestAttributes(
java.util.jar.Attributes.Name.IMPLEMENTATION_VERSION -> version.value
)
jacoco.settings
jacoco.excludes in jacoco.Config := Seq("*Request*", "*Result*", "*Example*", "*SolidFire*", "*api*", "*generated*")
Keys.fork in jacoco.Config := true
parallelExecution in jacoco.Config := false
jacoco.reportFormats in jacoco.Config := Seq( XMLReport(encoding = "utf-8"))
// Remove any scala sources so that documentation is build with javadoc
sources in (Compile, doc) <<= sources in (Compile, doc) map { _.filterNot(_.getName endsWith ".scala") }