forked from archived-codacy/coverage-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
73 lines (53 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 Dependencies._
name := "coverage-parser"
version := "1.1.1"
scalaVersion := "2.11.6"
crossScalaVersions := Seq("2.10.5", "2.11.6")
scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-Ywarn-adapted-args", "-Xlint", "-Xfatal-warnings")
resolvers ++= Seq(
DefaultMavenRepository,
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
Classpaths.typesafeReleases,
Classpaths.sbtPluginReleases
)
libraryDependencies ++= Seq(
codacyScalaApi,
scalaTest
)
mappings in(Compile, packageBin) ~= {
_.filterNot {
case (file, _) => file.getName == "logback-test.xml"
}
}
organization := "com.codacy"
organizationName := "Codacy"
organizationHomepage := Some(new URL("https://www.codacy.com"))
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false}
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
startYear := Some(2015)
description := "Library for parsing coverage reports"
licenses := Seq("The Apache Software License, Version 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("http://www.github.com/codacy/coverage-parser/"))
pomExtra :=
<scm>
<url>https://github.com/codacy/coverage-parser</url>
<connection>scm:git:[email protected]:codacy/coverage-parser.git</connection>
<developerConnection>scm:git:https://github.com/codacy/coverage-parser.git</developerConnection>
</scm>
<developers>
<developer>
<id>mrfyda</id>
<name>Rafael</name>
<email>rafael [at] codacy.com</email>
<url>https://github.com/mrfyda</url>
</developer>
</developers>