|
|
|
@ -157,9 +157,12 @@ object Keys {
|
|
|
|
val javaSource = settingKey[File]("Default Java source directory.").withRank(ASetting)
|
|
|
|
val javaSource = settingKey[File]("Default Java source directory.").withRank(ASetting)
|
|
|
|
val sourceDirectories = settingKey[Seq[File]]("List of all source directories, both managed and unmanaged.").withRank(AMinusSetting)
|
|
|
|
val sourceDirectories = settingKey[Seq[File]]("List of all source directories, both managed and unmanaged.").withRank(AMinusSetting)
|
|
|
|
val unmanagedSourceDirectories = settingKey[Seq[File]]("Unmanaged source directories, which contain manually created sources.").withRank(ASetting)
|
|
|
|
val unmanagedSourceDirectories = settingKey[Seq[File]]("Unmanaged source directories, which contain manually created sources.").withRank(ASetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val unmanagedSources = taskKey[Seq[File]]("Unmanaged sources, which are manually created.").withRank(BPlusTask)
|
|
|
|
val unmanagedSources = taskKey[Seq[File]]("Unmanaged sources, which are manually created.").withRank(BPlusTask)
|
|
|
|
val managedSourceDirectories = settingKey[Seq[File]]("Managed source directories, which contain sources generated by the build.").withRank(BSetting)
|
|
|
|
val managedSourceDirectories = settingKey[Seq[File]]("Managed source directories, which contain sources generated by the build.").withRank(BSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val managedSources = taskKey[Seq[File]]("Sources generated by the build.").withRank(BTask)
|
|
|
|
val managedSources = taskKey[Seq[File]]("Sources generated by the build.").withRank(BTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val sources = taskKey[Seq[File]]("All sources, both managed and unmanaged.").withRank(BTask)
|
|
|
|
val sources = taskKey[Seq[File]]("All sources, both managed and unmanaged.").withRank(BTask)
|
|
|
|
val sourcesInBase = settingKey[Boolean]("If true, sources from the project's base directory are included as main sources.")
|
|
|
|
val sourcesInBase = settingKey[Boolean]("If true, sources from the project's base directory are included as main sources.")
|
|
|
|
|
|
|
|
|
|
|
|
@ -171,10 +174,13 @@ object Keys {
|
|
|
|
val resourceDirectory = settingKey[File]("Default unmanaged resource directory, used for user-defined resources.").withRank(ASetting)
|
|
|
|
val resourceDirectory = settingKey[File]("Default unmanaged resource directory, used for user-defined resources.").withRank(ASetting)
|
|
|
|
val resourceManaged = settingKey[File]("Default managed resource directory, used when generating resources.").withRank(BSetting)
|
|
|
|
val resourceManaged = settingKey[File]("Default managed resource directory, used when generating resources.").withRank(BSetting)
|
|
|
|
val unmanagedResourceDirectories = settingKey[Seq[File]]("Unmanaged resource directories, containing resources manually created by the user.").withRank(AMinusSetting)
|
|
|
|
val unmanagedResourceDirectories = settingKey[Seq[File]]("Unmanaged resource directories, containing resources manually created by the user.").withRank(AMinusSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val unmanagedResources = taskKey[Seq[File]]("Unmanaged resources, which are manually created.").withRank(BPlusTask)
|
|
|
|
val unmanagedResources = taskKey[Seq[File]]("Unmanaged resources, which are manually created.").withRank(BPlusTask)
|
|
|
|
val managedResourceDirectories = settingKey[Seq[File]]("List of managed resource directories.").withRank(AMinusSetting)
|
|
|
|
val managedResourceDirectories = settingKey[Seq[File]]("List of managed resource directories.").withRank(AMinusSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val managedResources = taskKey[Seq[File]]("Resources generated by the build.").withRank(BTask)
|
|
|
|
val managedResources = taskKey[Seq[File]]("Resources generated by the build.").withRank(BTask)
|
|
|
|
val resourceDirectories = settingKey[Seq[File]]("List of all resource directories, both managed and unmanaged.").withRank(BPlusSetting)
|
|
|
|
val resourceDirectories = settingKey[Seq[File]]("List of all resource directories, both managed and unmanaged.").withRank(BPlusSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val resources = taskKey[Seq[File]]("All resource files, both managed and unmanaged.").withRank(BTask)
|
|
|
|
val resources = taskKey[Seq[File]]("All resource files, both managed and unmanaged.").withRank(BTask)
|
|
|
|
private[sbt] val resourceDigests = taskKey[Seq[Digest]]("All resource files, both managed and unmanaged.").withRank(BTask)
|
|
|
|
private[sbt] val resourceDigests = taskKey[Seq[Digest]]("All resource files, both managed and unmanaged.").withRank(BTask)
|
|
|
|
|
|
|
|
|
|
|
|
@ -257,6 +263,7 @@ object Keys {
|
|
|
|
val manipulateBytecode = taskKey[CompileResult]("Manipulates generated bytecode").withRank(BTask)
|
|
|
|
val manipulateBytecode = taskKey[CompileResult]("Manipulates generated bytecode").withRank(BTask)
|
|
|
|
val compileIncremental = taskKey[(Boolean, VirtualFileRef, HashedVirtualFileRef)]("Actually runs the incremental compilation").withRank(DTask)
|
|
|
|
val compileIncremental = taskKey[(Boolean, VirtualFileRef, HashedVirtualFileRef)]("Actually runs the incremental compilation").withRank(DTask)
|
|
|
|
val previousCompile = taskKey[PreviousResult]("Read the incremental compiler analysis from disk").withRank(DTask)
|
|
|
|
val previousCompile = taskKey[PreviousResult]("Read the incremental compiler analysis from disk").withRank(DTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val tastyFiles = taskKey[Seq[File]]("Returns the TASTy files produced by compilation").withRank(DTask)
|
|
|
|
val tastyFiles = taskKey[Seq[File]]("Returns the TASTy files produced by compilation").withRank(DTask)
|
|
|
|
private[sbt] val compileScalaBackend = taskKey[CompileResult]("Compiles only Scala sources if pipelining is enabled. Compiles both Scala and Java sources otherwise").withRank(Invisible)
|
|
|
|
private[sbt] val compileScalaBackend = taskKey[CompileResult]("Compiles only Scala sources if pipelining is enabled. Compiles both Scala and Java sources otherwise").withRank(Invisible)
|
|
|
|
private[sbt] val compileEarly = taskKey[CompileAnalysis]("Compiles only Scala sources if pipelining is enabled, and produce an early output (pickle JAR)").withRank(Invisible)
|
|
|
|
private[sbt] val compileEarly = taskKey[CompileAnalysis]("Compiles only Scala sources if pipelining is enabled, and produce an early output (pickle JAR)").withRank(Invisible)
|
|
|
|
@ -273,17 +280,21 @@ object Keys {
|
|
|
|
val earlyCompileAnalysisTargetRoot = settingKey[File]("The output directory to produce Zinc Analysis files").withRank(DSetting)
|
|
|
|
val earlyCompileAnalysisTargetRoot = settingKey[File]("The output directory to produce Zinc Analysis files").withRank(DSetting)
|
|
|
|
@transient
|
|
|
|
@transient
|
|
|
|
val compileAnalysisFile = taskKey[File]("Zinc analysis storage.").withRank(DSetting)
|
|
|
|
val compileAnalysisFile = taskKey[File]("Zinc analysis storage.").withRank(DSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val earlyCompileAnalysisFile = taskKey[File]("Zinc analysis storage for early compilation").withRank(DSetting)
|
|
|
|
val earlyCompileAnalysisFile = taskKey[File]("Zinc analysis storage for early compilation").withRank(DSetting)
|
|
|
|
|
|
|
|
|
|
|
|
@transient
|
|
|
|
@transient
|
|
|
|
val compileIncSetup = taskKey[Setup]("Configures aspects of incremental compilation.").withRank(DTask)
|
|
|
|
val compileIncSetup = taskKey[Setup]("Configures aspects of incremental compilation.").withRank(DTask)
|
|
|
|
val compilerCache = taskKey[GlobalsCache]("Cache of scala.tools.nsc.Global instances. This should typically be cached so that it isn't recreated every task run.").withRank(DTask)
|
|
|
|
val compilerCache = taskKey[GlobalsCache]("Cache of scala.tools.nsc.Global instances. This should typically be cached so that it isn't recreated every task run.").withRank(DTask)
|
|
|
|
val stateCompilerCache = AttributeKey[GlobalsCache]("stateCompilerCache", "Internal use: Global cache.")
|
|
|
|
val stateCompilerCache = AttributeKey[GlobalsCache]("stateCompilerCache", "Internal use: Global cache.")
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val classpathEntryDefinesClass = taskKey[File => DefinesClass]("Internal use: provides a function that determines whether the provided file contains a given class.").withRank(Invisible)
|
|
|
|
val classpathEntryDefinesClass = taskKey[File => DefinesClass]("Internal use: provides a function that determines whether the provided file contains a given class.").withRank(Invisible)
|
|
|
|
private[sbt] val classpathDefinesClassCache = settingKey[VirtualFileValueCache[DefinesClass]]("Internal use: a cache of jar classpath entries that persists across command evaluations.").withRank(Invisible)
|
|
|
|
private[sbt] val classpathDefinesClassCache = settingKey[VirtualFileValueCache[DefinesClass]]("Internal use: a cache of jar classpath entries that persists across command evaluations.").withRank(Invisible)
|
|
|
|
val persistJarClasspath = settingKey[Boolean]("Toggles whether or not to cache jar classpath entries between command evaluations")
|
|
|
|
val persistJarClasspath = settingKey[Boolean]("Toggles whether or not to cache jar classpath entries between command evaluations")
|
|
|
|
val classpathEntryDefinesClassVF = taskKey[VirtualFile => DefinesClass]("Internal use: provides a function that determines whether the provided file contains a given class.").withRank(Invisible)
|
|
|
|
val classpathEntryDefinesClassVF = taskKey[VirtualFile => DefinesClass]("Internal use: provides a function that determines whether the provided file contains a given class.").withRank(Invisible)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val doc = taskKey[File]("Generates API documentation.").withRank(AMinusTask)
|
|
|
|
val doc = taskKey[File]("Generates API documentation.").withRank(AMinusTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val copyResources = taskKey[Seq[(File, File)]]("Copies resources to the output directory.").withRank(AMinusTask)
|
|
|
|
val copyResources = taskKey[Seq[(File, File)]]("Copies resources to the output directory.").withRank(AMinusTask)
|
|
|
|
val aggregate = settingKey[Boolean]("Configures task aggregation.").withRank(BMinusSetting)
|
|
|
|
val aggregate = settingKey[Boolean]("Configures task aggregation.").withRank(BMinusSetting)
|
|
|
|
val sourcePositionMappers = taskKey[Seq[xsbti.Position => Option[xsbti.Position]]]("Maps positions in generated source files to the original source it was generated from").withRank(DTask)
|
|
|
|
val sourcePositionMappers = taskKey[Seq[xsbti.Position => Option[xsbti.Position]]]("Maps positions in generated source files to the original source it was generated from").withRank(DTask)
|
|
|
|
@ -407,7 +418,9 @@ object Keys {
|
|
|
|
val projectInfo = settingKey[ModuleInfo]("Addition project information like formal name, homepage, licenses etc.").withRank(CSetting)
|
|
|
|
val projectInfo = settingKey[ModuleInfo]("Addition project information like formal name, homepage, licenses etc.").withRank(CSetting)
|
|
|
|
val defaultConfiguration = settingKey[Option[Configuration]]("Defines the configuration used when none is specified for a dependency in ivyXML.").withRank(CSetting)
|
|
|
|
val defaultConfiguration = settingKey[Option[Configuration]]("Defines the configuration used when none is specified for a dependency in ivyXML.").withRank(CSetting)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val products = taskKey[Seq[File]]("Build products that get packaged.").withRank(BMinusTask)
|
|
|
|
val products = taskKey[Seq[File]]("Build products that get packaged.").withRank(BMinusTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val productDirectories = taskKey[Seq[File]]("Base directories of build products.").withRank(CTask)
|
|
|
|
val productDirectories = taskKey[Seq[File]]("Base directories of build products.").withRank(CTask)
|
|
|
|
val exportJars = settingKey[Boolean]("Determines whether the exported classpath for this project contains classes (false) or a packaged jar (true).").withRank(BSetting)
|
|
|
|
val exportJars = settingKey[Boolean]("Determines whether the exported classpath for this project contains classes (false) or a packaged jar (true).").withRank(BSetting)
|
|
|
|
val exportedProducts = taskKey[Classpath]("Build products that go on the exported classpath.").withRank(CTask)
|
|
|
|
val exportedProducts = taskKey[Classpath]("Build products that go on the exported classpath.").withRank(CTask)
|
|
|
|
@ -539,6 +552,7 @@ object Keys {
|
|
|
|
val updateClassifiers = TaskKey[UpdateReport]("updateClassifiers", "Resolves and optionally retrieves classified artifacts, such as javadocs and sources, for dependency definitions, transitively.", BPlusTask, update)
|
|
|
|
val updateClassifiers = TaskKey[UpdateReport]("updateClassifiers", "Resolves and optionally retrieves classified artifacts, such as javadocs and sources, for dependency definitions, transitively.", BPlusTask, update)
|
|
|
|
val transitiveClassifiers = settingKey[Seq[String]]("List of classifiers used for transitively obtaining extra artifacts for sbt or declared dependencies.").withRank(BSetting)
|
|
|
|
val transitiveClassifiers = settingKey[Seq[String]]("List of classifiers used for transitively obtaining extra artifacts for sbt or declared dependencies.").withRank(BSetting)
|
|
|
|
val updateSbtClassifiers = TaskKey[UpdateReport]("updateSbtClassifiers", "Resolves and optionally retrieves classifiers, such as javadocs and sources, for sbt, transitively.", BPlusTask, updateClassifiers)
|
|
|
|
val updateSbtClassifiers = TaskKey[UpdateReport]("updateSbtClassifiers", "Resolves and optionally retrieves classifiers, such as javadocs and sources, for sbt, transitively.", BPlusTask, updateClassifiers)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val dependencyLock = taskKey[File]("Generates a dependency lock file from the current resolution.").withRank(BTask)
|
|
|
|
val dependencyLock = taskKey[File]("Generates a dependency lock file from the current resolution.").withRank(BTask)
|
|
|
|
val dependencyLockCheck = taskKey[Unit]("Checks if the dependency lock file is up-to-date.").withRank(BTask)
|
|
|
|
val dependencyLockCheck = taskKey[Unit]("Checks if the dependency lock file is up-to-date.").withRank(BTask)
|
|
|
|
val dependencyLockFile = settingKey[File]("The location of the dependency lock file.").withRank(CSetting)
|
|
|
|
val dependencyLockFile = settingKey[File]("The location of the dependency lock file.").withRank(CSetting)
|
|
|
|
@ -562,9 +576,12 @@ object Keys {
|
|
|
|
val allCredentials = taskKey[Seq[Credentials]]("Aggregated credentials across current and root subprojects. Do not rewire this task.").withRank(DTask)
|
|
|
|
val allCredentials = taskKey[Seq[Credentials]]("Aggregated credentials across current and root subprojects. Do not rewire this task.").withRank(DTask)
|
|
|
|
|
|
|
|
|
|
|
|
val makePom = taskKey[HashedVirtualFileRef]("Generates a pom for publishing when publishing Maven-style.").withRank(BPlusTask)
|
|
|
|
val makePom = taskKey[HashedVirtualFileRef]("Generates a pom for publishing when publishing Maven-style.").withRank(BPlusTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val deliver = taskKey[File]("Generates the Ivy file for publishing to a repository.").withRank(BTask)
|
|
|
|
val deliver = taskKey[File]("Generates the Ivy file for publishing to a repository.").withRank(BTask)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val deliverLocal = taskKey[File]("Generates the Ivy file for publishing to the local repository.").withRank(BTask)
|
|
|
|
val deliverLocal = taskKey[File]("Generates the Ivy file for publishing to the local repository.").withRank(BTask)
|
|
|
|
// makeIvyXml is currently identical to the confusingly-named "deliver", which may be deprecated in the future
|
|
|
|
// makeIvyXml is currently identical to the confusingly-named "deliver", which may be deprecated in the future
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val makeIvyXml = taskKey[File]("Generates the Ivy file for publishing to a repository.").withRank(BTask)
|
|
|
|
val makeIvyXml = taskKey[File]("Generates the Ivy file for publishing to a repository.").withRank(BTask)
|
|
|
|
/** BOM-resolved ModuleIDs for deps that had \"*\" (version from BOM); emitted as forced deps in published ivy.xml (sbt#4531). */
|
|
|
|
/** BOM-resolved ModuleIDs for deps that had \"*\" (version from BOM); emitted as forced deps in published ivy.xml (sbt#4531). */
|
|
|
|
val resolvedDependencies = taskKey[Seq[ModuleID]]("")
|
|
|
|
val resolvedDependencies = taskKey[Seq[ModuleID]]("")
|
|
|
|
@ -605,6 +622,7 @@ object Keys {
|
|
|
|
val retrieveConfiguration = settingKey[Option[RetrieveConfiguration]]("Configures retrieving dependencies to the current build.").withRank(DSetting)
|
|
|
|
val retrieveConfiguration = settingKey[Option[RetrieveConfiguration]]("Configures retrieving dependencies to the current build.").withRank(DSetting)
|
|
|
|
val offline = settingKey[Boolean]("Configures sbt to work without a network connection where possible.").withRank(ASetting)
|
|
|
|
val offline = settingKey[Boolean]("Configures sbt to work without a network connection where possible.").withRank(ASetting)
|
|
|
|
val ivyPaths = settingKey[IvyPaths]("Configures paths used by Ivy for dependency management.").withRank(DSetting)
|
|
|
|
val ivyPaths = settingKey[IvyPaths]("Configures paths used by Ivy for dependency management.").withRank(DSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val dependencyCacheDirectory = taskKey[File]("The base directory for cached dependencies.").withRank(DTask)
|
|
|
|
val dependencyCacheDirectory = taskKey[File]("The base directory for cached dependencies.").withRank(DTask)
|
|
|
|
val libraryDependencies = settingKey[Seq[ModuleID]]("Declares managed dependencies.").withRank(APlusSetting)
|
|
|
|
val libraryDependencies = settingKey[Seq[ModuleID]]("Declares managed dependencies.").withRank(APlusSetting)
|
|
|
|
val dependencyOverrides = settingKey[Seq[ModuleID]]("Declares managed dependency overrides.").withRank(BSetting)
|
|
|
|
val dependencyOverrides = settingKey[Seq[ModuleID]]("Declares managed dependency overrides.").withRank(BSetting)
|
|
|
|
@ -635,6 +653,7 @@ object Keys {
|
|
|
|
val libraryDependencySchemes = settingKey[Seq[ModuleID]]("""Version scheme to use for specific modules set as "org" %% "name" % "<scheme>": Supported values are "early-semver", "pvp", "semver-spec", "always", and "strict".""").withRank(BSetting)
|
|
|
|
val libraryDependencySchemes = settingKey[Seq[ModuleID]]("""Version scheme to use for specific modules set as "org" %% "name" % "<scheme>": Supported values are "early-semver", "pvp", "semver-spec", "always", and "strict".""").withRank(BSetting)
|
|
|
|
@transient
|
|
|
|
@transient
|
|
|
|
val stagingDirectory = settingKey[File]("Local staging directory for Sonatype publishing").withRank(CSetting)
|
|
|
|
val stagingDirectory = settingKey[File]("Local staging directory for Sonatype publishing").withRank(CSetting)
|
|
|
|
|
|
|
|
@transient
|
|
|
|
val sonaBundle = taskKey[File]("Local bundle for Sonatype publishing").withRank(DTask)
|
|
|
|
val sonaBundle = taskKey[File]("Local bundle for Sonatype publishing").withRank(DTask)
|
|
|
|
val localStaging = settingKey[Option[Resolver]]("Local staging resolver for Sonatype publishing").withRank(CSetting)
|
|
|
|
val localStaging = settingKey[Option[Resolver]]("Local staging resolver for Sonatype publishing").withRank(CSetting)
|
|
|
|
val sonaDeploymentName = settingKey[String]("The name used for deployment").withRank(DSetting)
|
|
|
|
val sonaDeploymentName = settingKey[String]("The name used for deployment").withRank(DSetting)
|
|
|
|
|