.settings( organization := "com.github.seratch", name := "my-awesome-library", version := "0.1.0-SNAPSHOT", scalaVersion := "2.12.7", crossScalaVersions := Seq("2.12.7", "2.11.12"), scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature", "-Xfuture"), libraryDependencies ++= Seq( "org.scalatest" %% "scalatest" % "3.0.5" % Test ), // FYI: https://www.scala-sbt.org/1.0/docs/Using-Sonatype.html publishTo := { /* omitted */ }, pomExtra := { /* omitted */ } ) .settings(mimaSettings) val mimaSettings = MimaPlugin.mimaDefaultSettings ++ Seq( mimaPreviousArtifacts := { val previousVersions: Set[String] = Set.empty // e.g. Set("0.1.0", "0.1.1") previousVersions.map { v => organization.value % s"${name.value}_${scalaBinaryVersion.value}" % v } }, test in Test := { mimaReportBinaryIssues.value (test in Test).value } )