You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sbtplugin/src/main/scala/com/typesafe/tools/mima/plugin/MimaKeys.scala
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,6 @@ object MimaKeys extends MimaKeys
8
8
classMimaKeys {
9
9
10
10
finalvalmimaFailOnProblem= settingKey[Boolean]("if true, fail the build on binary incompatibility detection.")
11
-
finalvalmimaFailOnNoPrevious= settingKey[Boolean]("if true, fail the build if no previous artifacts are set.")
12
11
finalvalmimaPreviousArtifacts= settingKey[Set[ModuleID]]("Previous released artifacts used to test binary compatibility.")
13
12
finalvalmimaPreviousClassfiles= taskKey[Map[ModuleID, File]]("Directories or jars containing the previous class files used to test compatibility with a given module.")
14
13
finalvalmimaCurrentClassfiles= taskKey[File]("Directory or jar containing the current class files used to test compatibility.")
@@ -23,4 +22,7 @@ class MimaKeys {
23
22
24
23
finalvalmimaCheckDirection= settingKey[String]("Compatibility checking direction; default is \"backward\", but can also be \"forward\" or \"both\".")
valcp= (fullClasspath in mimaFindBinaryIssues).value
82
84
valcheckDirection= mimaCheckDirection.value
83
-
if (previousClassfiles.isEmpty) {
84
-
valmsg=s"$projectName: mimaPreviousArtifacts not set, not analyzing binary compatibility. See https://github.com/lightbend/mima#make-mimareportbinaryissues-not-fail"
85
-
if (failOnNoPrevious) sys.error(msg)
86
-
log.info(msg)
87
-
Iterator.empty
88
-
}
89
-
else {
90
-
previousClassfiles.iterator.map { case (moduleId, file) =>
0 commit comments