All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.build.actionable.ActionablePreprocessor.scala Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy