forked from codacy/codacy-coverage-reporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
85 lines (62 loc) · 2.35 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
import Dependencies._
name := "codacy-coverage-reporter"
version := "1.0.5"
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,
"Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/",
"Sonatype snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
Classpaths.typesafeReleases,
Classpaths.sbtPluginReleases
)
libraryDependencies ++= Seq(
codacyScalaApi,
coverageParser,
scopt,
scalaTest
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case _ => MergeStrategy.first
}
crossPaths := false
artifact in(Compile, assembly) := {
val art = (artifact in(Compile, assembly)).value
art.copy(`classifier` = Some("assembly"))
}
addArtifact(artifact in(Compile, assembly), assembly)
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/codacy-coverage-reporter/"))
pomExtra :=
<scm>
<url>https://github.com/codacy/codacy-coverage-reporter</url>
<connection>scm:git:git@github.com:codacy/codacy-coverage-reporter.git</connection>
<developerConnection>scm:git:https://github.com/codacy/codacy-coverage-reporter.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>