
scala.build.actionable.ActionablePreprocessor.scala Maven / Gradle / Ivy
package scala.build.actionable
import scala.build.Ops._
import scala.build.errors.{BuildException, CompositeBuildException, Diagnostic}
import scala.build.options.BuildOptions
object ActionablePreprocessor {
val actionableHandlers = Seq[ActionableHandler[_]](
ActionableDependencyHandler
)
def generateActionableDiagnostics(
options: BuildOptions
): Either[BuildException, Seq[Diagnostic]] =
actionableHandlers
.map(handler => handler.createActionableDiagnostics(options))
.sequence
.left.map(CompositeBuildException(_))
.map(_.flatten)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy