Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit e509f1a

Browse files
authored
Cross publish sbt 1.0 (#47)
1 parent 489728a commit e509f1a

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

build.sbt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ name := "sbt-codacy-coverage"
44

55
version := "0.0.1-SNAPSHOT"
66

7-
scalaVersion := "2.10.4"
7+
crossSbtVersions := Seq("0.13.16", "1.0.1")
8+
9+
scalaVersion := (CrossVersion partialVersion (sbtVersion in pluginCrossBuild).value match {
10+
case Some((0, 13)) => "2.10.6"
11+
case Some((1, _)) => "2.12.2"
12+
case _ => sys error s"Unhandled sbt version ${(sbtVersion in pluginCrossBuild).value}"
13+
})
814

915
scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-Ywarn-adapted-args", "-Xlint", "-Xfatal-warnings")
1016

@@ -21,8 +27,7 @@ resolvers ++= Seq(
2127
libraryDependencies ++= Seq(
2228
codacyScalaApi,
2329
coverageParser,
24-
`rapture-json-circe`,
25-
scalaTest
30+
`rapture-json-circe`
2631
)
2732

2833
organization := "com.codacy"
@@ -35,7 +40,7 @@ publishMavenStyle := true
3540

3641
publishArtifact in Test := false
3742

38-
pomIncludeRepository := { _ => false}
43+
pomIncludeRepository := { _ => false }
3944

4045
publishTo := {
4146
val nexus = "https://oss.sonatype.org/"

project/Dependencies.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import sbt._
22

33
object Dependencies {
44

5-
lazy val codacyScalaApi = "com.codacy" %% "codacy-api-scala" % "3.0.1"
6-
lazy val coverageParser = "com.codacy" %% "coverage-parser" % "2.0.1"
7-
lazy val scalaTest = "org.scalatest" %% "scalatest" % "2.2.4" % "test"
8-
lazy val `rapture-json-circe` = "com.propensive" %% "rapture-json-circe" % "2.0.0-M8"
5+
val codacyScalaApi = "com.codacy" %% "codacy-api-scala" % "3.0.2"
6+
val coverageParser = "com.codacy" %% "coverage-parser" % "2.0.2"
7+
val `rapture-json-circe` = "com.propensive" %% "rapture-json-circe" % "2.0.0-M8" exclude("org.spire-math", "jawn-parser_2.11")
98

109
}

0 commit comments

Comments
 (0)