Publish

object Publish extends ScalaCommand[PublishOptions] with BuildCommandHelpers
class ScalaCommand[PublishOptions]
trait RestrictableCommand[PublishOptions]
class Command[PublishOptions]
class CaseApp[PublishOptions]
class Object
trait Matchable
class Any
Publish.type

Type members

Inherited classlikes

implicit class EitherBuildExceptionOps[E <: BuildException, T](either: Either[E, T])
Inherited from:
CommandHelpers

Value members

Concrete methods

def defaultComputeVersion(mayDefaultToGitTag: Boolean): Option[ComputeVersion]
def defaultVersion: Either[BuildException, String]
def doRun(inputs: Inputs, logger: Logger, initialBuildOptions: BuildOptions, compilerMaker: ScalaCompilerMaker, docCompilerMaker: ScalaCompilerMaker, cross: Boolean, workingDir: => Path, ivy2HomeOpt: Option[Path], publishLocal: Boolean, forceSigningBinary: Boolean, parallelUpload: Option[Boolean], watch: Boolean, isCi: Boolean, configDb: () => ConfigDb, mainClassOptions: MainClassOptions): Unit
override def group: String
Definition Classes
Command
override def isRestricted: Boolean
Definition Classes
def maybePrintChecksumsAndExit(options: SharedPublishOptions): Unit
def maybePrintLicensesAndExit(params: PublishParamsOptions): Unit
def mkBuildOptions(baseOptions: BuildOptions, publishParams: PublishParamsOptions, sharedPublish: SharedPublishOptions, publishRepo: PublishRepositoryOptions, sharedPython: SharedPythonOptions, mainClass: MainClassOptions, ivy2LocalLike: Option[Boolean]): Either[BuildException, BuildOptions]
override def runCommand(options: PublishOptions, args: RemainingArgs, logger: Logger): Unit

This should be overridden instead of run when extending ScalaCommand.

This should be overridden instead of run when extending ScalaCommand.

Value parameters:
options

the command's specific set of options

remainingArgs

arguments remaining after parsing options

Definition Classes
override def sharedOptions(options: PublishOptions): Option[SharedOptions]
Definition Classes

Inherited methods

protected def actualCommandName: String

The actual sub-command name that was used. If the sub-command name is a list of strings, space is used as the separator. If argvOpt hasn't been defined, it defaults to name.

The actual sub-command name that was used. If the sub-command name is a list of strings, space is used as the separator. If argvOpt hasn't been defined, it defaults to name.

Inherited from:
ScalaCommand
protected def actualFullCommand: String
Inherited from:
ScalaCommand
protected def baseRunnerName: String
Returns:

the actual Scala CLI base runner name, for SIP it is scala otherwise scala-cli

Inherited from:
ScalaCommand
def buildOptions(options: PublishOptions): Option[BuildOptions]
Value parameters:
options

command-specific T options

Returns:

Tries to create BuildOptions based on sharedOptions and exits on error. Override to change this behaviour.

Inherited from:
ScalaCommand
protected def buildOptionsOrExit(options: PublishOptions): BuildOptions
Inherited from:
ScalaCommand
def complete(args: Seq[String], index: Int): List[CompletionItem]
Inherited from:
CaseApp
override def completer: Completer[T]
Definition Classes
ScalaCommand -> CaseApp
Inherited from:
ScalaCommand
def ensureNoDuplicates(): Unit
Inherited from:
CaseApp
override def error(message: Error): Nothing
Definition Classes
ScalaCommand -> CaseApp
Inherited from:
ScalaCommand
def exit(code: Int): Nothing
Inherited from:
CaseApp
def expandArgs(args: List[String]): List[String]
Inherited from:
CaseApp
def fullHelpAsked(progName: String): Nothing
Inherited from:
CaseApp
protected def fullRunnerName: String
Returns:

the actual Scala CLI runner name which was run

Inherited from:
ScalaCommand
override def hasFullHelp: Boolean
Definition Classes
ScalaCommand -> CaseApp
Inherited from:
ScalaCommand
def hasHelp: Boolean
Inherited from:
CaseApp
def helpAsked(progName: String, maybeOptions: Either[Error, PublishOptions]): Nothing
Inherited from:
CaseApp
override def helpFormat: HelpFormat
Definition Classes
ScalaCommand -> CaseApp
Inherited from:
ScalaCommand
def hidden: Boolean
Inherited from:
Command
def ignoreUnrecognized: Boolean
Inherited from:
CaseApp
def main(progName: String, args: Array[String]): Unit
Inherited from:
CaseApp
def main(args: Array[String]): Unit
Inherited from:
CaseApp
def maybePrintGroupHelp(options: PublishOptions): Unit
Inherited from:
ScalaCommand
def maybePrintSimpleScalacOutput(options: PublishOptions, buildOptions: BuildOptions): Unit

Print scalac output if passed options imply no inputs are necessary and raw scalac output is required instead. (i.e. --scalac-option -help)

Print scalac output if passed options imply no inputs are necessary and raw scalac output is required instead. (i.e. --scalac-option -help)

Value parameters:
options

command options

Inherited from:
ScalaCommand
def maybePrintToolsHelp(options: PublishOptions, buildOptions: BuildOptions): Unit
Inherited from:
ScalaCommand
def name: String
Inherited from:
Command
def names: List[List[String]]
Inherited from:
Command
override def parser: Parser[T]
Definition Classes
Inherited from:
RestrictableCommand
protected def progName: String
Returns:

the actual Scala CLI program name which was run

Inherited from:
ScalaCommand
final override def run(options: PublishOptions, remainingArgs: RemainingArgs): Unit

This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.

This implementation is final. Override runCommand instead. This logic is invoked at the start of running every ScalaCommand.

Definition Classes
ScalaCommand -> CaseApp
Inherited from:
ScalaCommand
override def setArgv(argv: Array[String]): Unit
Definition Classes
Inherited from:
ScalaCommand
Inherited from:
CaseApp
def usageAsked(progName: String, maybeOptions: Either[Error, PublishOptions]): Nothing
Inherited from:
CaseApp

Inherited fields

protected var argvOpt: Option[Array[String]]
Inherited from:
ScalaCommand
lazy override val nameFormatter: Formatter[Name]
Inherited from:
ScalaCommand

Extensions

Inherited extensions

extension (successfulBuild: Successful)
def copyOutput(sharedOptions: SharedOptions): Unit

-O -d defaults to --compile-output; if both are defined, --compile-output takes precedence

-O -d defaults to --compile-output; if both are defined, --compile-output takes precedence

Inherited from:
BuildCommandHelpers
def retainedMainClass(logger: Logger, mainClasses: Seq[String]): Either[MainClassError, String]
Inherited from:
BuildCommandHelpers

Implicits

Inherited implicits

final implicit def EitherBuildExceptionOps[E <: BuildException, T](either: Either[E, T]): EitherBuildExceptionOps[E, T]
Inherited from:
CommandHelpers