SBT命令列表

时间:2019-08-19 17:23:43

标签: scala sbt

有SBT命令列表吗?我尝试了sbt.version,但是得到的错误是命令在内部无法识别等等……sbt --version唯一相同的东西我发现是有效的sbt sbtVersion,它在任何地方都没有列出。这是我找到的唯一列表,没有人知道列出可用命令的其他任何来源吗? https://www.scala-sbt.org/1.x-beta/docs/Command-Line-Reference.html

例如,如何找到版本?

1 个答案:

答案 0 :(得分:0)

您可以找到一些有用的命令here。 如果要查找sbt版本的命令,可以使用sbt settings。您将获得如下所示的结果:

This is a list of settings defined for the current project.
It does not list the scopes the settings are defined in; use the 'inspect' command for that.

  autoCompilerPlugins            If true, enables automatically generating -Xplugin arguments to the compiler based on the classpath for the plugin configuration.
  autoScalaLibrary               Adds a dependency on scala-library if true.
  baseDirectory                  The base directory.  Depending on the scope, this is the base directory for the build, project, configuration, or task.
  classDirectory                 Directory for compiled classes and copied resources.
  crossPaths                     If true, enables cross paths, which distinguish input and output directories for cross-building.
  fork                           If true, forks a new JVM when running.  If false, runs in the same JVM as the build.
  initialCommands                Initial commands to execute when starting up the Scala interpreter.
  javaHome                       Selects the Java installation used for compiling and forking.  If None, uses the Java installation running the build.
  javaSource                     Default Java source directory.
  libraryDependencies            Declares managed dependencies.
  logLevel                       The amount of logging sent to the screen.
  managedResourceDirectories     List of managed resource directories.
  maxErrors                      The maximum number of errors, such as compile errors, to list.
  name                           Project name.
  offline                        Configures sbt to work without a network connection where possible.
  organization                   Organization/group ID.
  publishArtifact                Enables (true) or disables (false) publishing an artifact.
  resourceDirectory              Default unmanaged resource directory, used for user-defined resources.
  sbtVersion                     Provides the version of sbt.  This setting should not be modified.
  scalaHome                      If Some, defines the local Scala installation to use for compilation, running, and testing.
  scalaSource                    Default Scala source directory.
  scalaVersion                   The version of Scala used for building.
  sourceDirectories              List of all source directories, both managed and unmanaged.
  sourceDirectory                Default directory containing sources.
  target                         Main directory for files generated by the build.
  unmanagedBase                  The default directory for manually managed libraries.
  unmanagedResourceDirectories   Unmanaged resource directories, containing resources manually created by the user.
  unmanagedSourceDirectories     Unmanaged source directories, which contain manually created sources.
  version                        The version/revision of the current module.

因此,您可以在这里找到sbtVersion

相关问题