scala.build.Build
See theBuild companion trait
object Build
Attributes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Buildclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Buildclass Objecttrait Matchableclass AnyShow all
final case class Successful(inputs: Inputs, options: BuildOptions, scalaParams: Option[ScalaParameters], scope: Scope, sources: Sources, artifacts: Artifacts, project: Project, output: Path, diagnostics: Option[Seq[(Either[String, Path], Diagnostic)]], generatedSources: Seq[GeneratedSource], isPartial: Boolean) extends Build
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Buildclass Objecttrait Matchableclass AnyShow all
final class Watcher(val watchers: ListBuffer[PathWatcher[Event]], val scheduler: ScheduledExecutorService, onChange: => Unit, onDispose: => Unit)
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
def build(inputs: Inputs, options: BuildOptions, compilerMaker: ScalaCompilerMaker, docCompilerMakerOpt: Option[ScalaCompilerMaker], logger: Logger, crossBuilds: Boolean, buildTests: Boolean, partial: Option[Boolean], actionableDiagnostics: Option[Boolean])(using ScalaCliInvokeData): Either[BuildException, Builds]
def buildOnce(inputs: Inputs, sources: Sources, generatedSources: Seq[GeneratedSource], options: BuildOptions, scope: Scope, logger: Logger, buildClient: BloopBuildClient, compiler: ScalaCompiler, partialOpt: Option[Boolean]): Either[BuildException, Build]
def buildProject(inputs: Inputs, sources: Sources, generatedSources: Seq[GeneratedSource], options: BuildOptions, compilerJvmVersionOpt: Option[Positioned[Int]], scope: Scope, logger: Logger, artifacts: Artifacts, maybeRecoverOnError: BuildException => Option[BuildException]): Either[BuildException, Project]
Builds a Bloop project.
Builds a Bloop project.
Value parameters
- compilerJvmVersionOpt
-
compiler JVM version (optional)
- generatedSources
-
sources generated by Scala CLI as part of the build
- inputs
-
inputs to be included in the project
- logger
-
logger
- maybeRecoverOnError
-
a function handling BuildException instances, possibly recovering them; returns None on recovery, Some(e: BuildException) otherwise
- options
-
build options
- scope
-
build scope for which the project is to be created
- sources
-
sources to be included in the project
Attributes
- Returns
-
a bloop Project
def postProcess(generatedSources: Seq[GeneratedSource], generatedSrcRoot: Path, classesDir: Path, logger: Logger, workspace: Path, updateSemanticDbs: Boolean, scalaVersion: String): Either[Seq[String], Unit]
def prepareBuild(inputs: Inputs, sources: Sources, generatedSources: Seq[GeneratedSource], options: BuildOptions, compilerJvmVersionOpt: Option[Positioned[Int]], scope: Scope, compiler: ScalaCompiler, logger: Logger, buildClient: BloopBuildClient, maybeRecoverOnError: BuildException => Option[BuildException]): Either[BuildException, (Path, Option[ScalaParameters], Artifacts, Project, Boolean)]
def releaseFlag(options: BuildOptions, compilerJvmVersionOpt: Option[Positioned[Int]], logger: Logger): Option[Int]
def scalaNativeSupported(options: BuildOptions, inputs: Inputs, logger: Logger): Either[BuildException, Option[ScalaNativeCompatibilityError]]
If some options are manually overridden, append a hash of the options to the project name Using only the command-line options not the ones from the sources.
If some options are manually overridden, append a hash of the options to the project name Using only the command-line options not the ones from the sources.
Attributes
def watch(inputs: Inputs, options: BuildOptions, compilerMaker: ScalaCompilerMaker, docCompilerMakerOpt: Option[ScalaCompilerMaker], logger: Logger, crossBuilds: Boolean, buildTests: Boolean, partial: Option[Boolean], actionableDiagnostics: Option[Boolean], postAction: () => Unit)(action: Either[BuildException, Builds] => Unit)(using ScalaCliInvokeData): Watcher
In this article