#18765 Update to latest MiMa which is now an AutoPlugin.
* check for binary inc. issues by default * if check is not needed, disable MimaPlugin * determine old artifact id from the current one
This commit is contained in:
parent
87113f9b14
commit
50f99328fe
43 changed files with 137 additions and 210 deletions
|
|
@ -4,6 +4,7 @@
|
|||
package akka
|
||||
|
||||
import com.typesafe.tools.mima.plugin.MimaKeys.reportBinaryIssues
|
||||
import com.typesafe.tools.mima.plugin.MimaPlugin
|
||||
import net.virtualvoid.sbt.graph.backend.SbtUpdateReport
|
||||
import net.virtualvoid.sbt.graph.DependencyGraphKeys._
|
||||
import net.virtualvoid.sbt.graph.ModuleGraph
|
||||
|
|
@ -245,10 +246,7 @@ object ValidatePullRequest extends AutoPlugin {
|
|||
} apply { tasks: Seq[Task[Any]] =>
|
||||
tasks.join map { seq => () /* Ignore the sequence of unit returned */ }
|
||||
}
|
||||
}.value,
|
||||
|
||||
// add reportBinaryIssues to validatePullRequest on minor version maintenance branch
|
||||
validatePullRequest <<= validatePullRequest.dependsOn(reportBinaryIssues)
|
||||
}.value
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -271,6 +269,20 @@ object MultiNodeWithPrValidation extends AutoPlugin {
|
|||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* This autoplugin adds MiMa binary issue reporting to validatePullRequest task,
|
||||
* when a project has MimaPlugin autoplugin enabled.
|
||||
*/
|
||||
object MimaWithPrValidation extends AutoPlugin {
|
||||
import ValidatePullRequest._
|
||||
|
||||
override def trigger = allRequirements
|
||||
override def requires = ValidatePullRequest && MimaPlugin
|
||||
override lazy val projectSettings = Seq(
|
||||
additionalTasks in ValidatePR += reportBinaryIssues
|
||||
)
|
||||
}
|
||||
|
||||
object UnidocWithPrValidation extends AutoPlugin {
|
||||
import ValidatePullRequest._
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue