Skip to content

Commit e39fd6e

Browse files
committed
Merge branch 'master' into scala-2.12
2 parents c284131 + 97b5b65 commit e39fd6e

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This library is meant to support Codacy when interacting with Bitbucket.
1111

1212
Import on SBT:
1313

14-
"com.codacy" %% "bitbucket-scala-client" % "2.1.0"
14+
"com.codacy" %% "bitbucket-scala-client" % "<VERSION>"
1515

1616
### Creators
1717

build.sbt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import Dependencies._
2+
3+
import scala.io.Source
4+
import scala.util.parsing.json.JSON
5+
16
name := """bitbucket-scala-client"""
27

38
version := "1.9.0-SNAPSHOT"
49

5-
scalaVersion := "2.11.12"
10+
scalaVersion := "2.12.6"
611

712
crossScalaVersions := Seq("2.11.12", "2.12.6")
813

@@ -23,6 +28,19 @@ libraryDependencies ++= Seq(
2328
Dependencies.scalaTest
2429
)
2530

31+
mimaPreviousArtifacts := {
32+
val latestVersion = JSON.parseFull(
33+
Source.fromURL("https://api.github.com/repos/codacy/bitbucket-scala-client/releases/latest").mkString
34+
).flatMap(_.asInstanceOf[Map[String, String]].get("tag_name")).getOrElse("5.0.0")
35+
Set("com.codacy" %% "bitbucket-scala-client" % latestVersion)
36+
}
37+
mimaBinaryIssueFilters ++= ignoredABIProblems
38+
val ignoredABIProblems = {
39+
import com.typesafe.tools.mima.core._
40+
import com.typesafe.tools.mima.core.ProblemFilters._
41+
Seq()
42+
}
43+
2644
organization := "com.codacy"
2745

2846
organizationName := "Codacy"

circle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ machine:
55
version: oraclejdk8
66

77
test:
8+
pre:
9+
- sbt mimaReportBinaryIssues
810
override:
911
- sbt +test

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ resolvers ++= Seq(
1212
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
1313

1414
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.1")
15+
16+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.2.0")

0 commit comments

Comments
 (0)