~ubuntu-branches/debian/experimental/json4s/experimental

« back to all changes in this revision

Viewing changes to project/MimaSettings.scala

  • Committer: Package Import Robot
  • Author(s): Frédéric Bonnard
  • Date: 2017-05-24 16:23:52 UTC
  • Revision ID: package-import@ubuntu.com-20170524162352-k7k8cj8u88wupw4b
Tags: upstream-3.5.0
Import upstream version 3.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sbt._, Keys._
 
2
import com.typesafe.tools.mima.plugin.MimaPlugin
 
3
import com.typesafe.tools.mima.plugin.MimaKeys._
 
4
 
 
5
object MimaSettings {
 
6
 
 
7
  // TODO: Enable this after 3.5.0 release
 
8
  // val previousVersions = Set(0).map(patch => s"3.5.$patch")
 
9
  val previousVersions: Set[String] = Set.empty
 
10
 
 
11
  val mimaSettings = MimaPlugin.mimaDefaultSettings ++ Seq(
 
12
    previousArtifacts := {
 
13
      CrossVersion.partialVersion(scalaVersion.value) match {
 
14
        case Some((2, scalaMajor)) if scalaMajor <= 11 =>
 
15
          previousVersions.map { organization.value % s"${name.value}_${scalaBinaryVersion.value}" % _ }
 
16
        case _ => Set.empty
 
17
      }
 
18
    },
 
19
    test in Test := {
 
20
      reportBinaryIssues.value
 
21
      (test in Test).value
 
22
    }
 
23
  )
 
24
 
 
25
}