11import Dependencies ._
2+ import codacy .libs ._
23
34name := " codacy-coverage-reporter"
45
5- organization := " com.codacy"
6-
76scalaVersion := " 2.11.12"
87
98scalacOptions := Seq (
@@ -16,7 +15,11 @@ scalacOptions := Seq(
1615 " -Ypartial-unification"
1716)
1817
19- libraryDependencies ++= Seq (coverageParser, logback, log4s, caseApp, raptureJsonPlay, scalaTest, cats, javaxActivation)
18+ // Runtime dependencies
19+ libraryDependencies ++= Seq (coverageParser, caseApp, cats, logbackClassic, scalaLogging)
20+
21+ // Test dependencies
22+ libraryDependencies ++= Seq (scalatest).map(_ % " test" )
2023
2124mainClass in assembly := Some (" com.codacy.CodacyCoverageReporter" )
2225assemblyMergeStrategy in assembly := {
@@ -27,38 +30,28 @@ assemblyMergeStrategy in assembly := {
2730crossPaths := false
2831artifact in (Compile , assembly) := {
2932 val art = (artifact in (Compile , assembly)).value
30- art.copy(`classifier` = Some (" assembly" ))
33+ art.withClassifier( Some (" assembly" ))
3134}
3235addArtifact(artifact in (Compile , assembly), assembly)
3336
34- organizationName := " Codacy"
35- organizationHomepage := Some (new URL (" https://www.codacy.com" ))
37+ // HACK: Since we are only using the public resolvers we need to remove the private for it to not fail
38+ resolvers ~= {
39+ _.filterNot(_.name.toLowerCase.contains(" codacy" ))
40+ }
3641
37- // this setting is not picked up properly from the plugin
42+ // HACK: This setting is not picked up properly from the plugin
3843pgpPassphrase := Option (System .getenv(" SONATYPE_GPG_PASSPHRASE" )).map(_.toCharArray)
3944
40- resolvers ~= { _.filterNot(_.name.toLowerCase.contains( " codacy " )) }
45+ description := " CLI to send coverage reports to Codacy through the API "
4146
42- publicMvnPublish
47+ scmInfo := Some (
48+ ScmInfo (
49+ url(" https://github.com/codacy/codacy-coverage-reporter" ),
50+ " scm:git:git@github.com:codacy/codacy-coverage-reporter.git"
51+ )
52+ )
4353
44- startYear := Some (2015 )
45- description := " Library for parsing coverage reports"
46- licenses := Seq (" The Apache Software License, Version 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0.txt" ))
47- homepage := Some (url(" http://www.github.com/codacy/codacy-coverage-reporter/" ))
48- pomExtra :=
49- <scm >
50- <url >https:// github.com/ codacy/ codacy- coverage- reporter</url >
51- <connection >scm: git: git@ github.com: codacy/ codacy- coverage- reporter.git</connection >
52- <developerConnection >scm: git: https:// github.com/ codacy/ codacy- coverage- reporter.git</developerConnection >
53- </scm >
54- <developers >
55- <developer >
56- <id >mrfyda</id >
57- <name >Rafael </name >
58- <email >rafael [at] codacy.com</email >
59- <url >https:// github.com/ mrfyda</url >
60- </developer >
61- </developers >
54+ publicMvnPublish
6255
6356fork in Test := true
6457cancelable in Global := true
0 commit comments