mirror of https://github.com/sbt/sbt.git
Docs: minor fixes
This commit is contained in:
parent
689f3e18e4
commit
7b7e642393
|
|
@ -43,7 +43,7 @@ Tags
|
|||
Once this is done, you can begin to configure your sbt-plugins to publish to bintray.
|
||||
|
||||
Add the bintray-sbt plugin to your build.
|
||||
========================================
|
||||
=========================================
|
||||
|
||||
First, add the bintray-sbt to your plugin build.
|
||||
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ The BuildDependencies type
|
|||
--------------------------
|
||||
|
||||
The type of the :key:`buildDependencies` setting is
|
||||
`BuildDependencies </api/sbt/BuildDependencies.html>`_.
|
||||
`BuildDependencies <../../api/sbt/BuildDependencies.html>`_.
|
||||
`BuildDependencies` provides mappings from a project to its aggregate
|
||||
or classpath dependencies. For classpath dependencies, a dependency has
|
||||
type `ClasspathDep[ProjectRef]`, which combines a `ProjectRef` with
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ represents a task. Define a new input task key using the
|
|||
val demo = inputKey[Unit]("A demo input task.")
|
||||
|
||||
The definition of an input task is similar to that of a normal task, but it can
|
||||
also use the result of a `Parser </Detailed-Topics/Parsing-Input>`_ applied to
|
||||
also use the result of a :doc:`Parser </Detailed-Topics/Parsing-Input>` applied to
|
||||
user input. Just as the special `value` method gets the value of a
|
||||
setting or task, the special `parsed` method gets the result of a `Parser`.
|
||||
|
||||
|
|
|
|||
|
|
@ -49,15 +49,14 @@ Implementing a task
|
|||
Once you've defined a key for your task, you'll need to complete it
|
||||
with a task definition. You could be defining your own task, or you
|
||||
could be planning to redefine an existing task. Either way looks the
|
||||
same; use `:=` to associate some code with the task key:
|
||||
same; use `:=` to associate some code with the task key: ::
|
||||
|
||||
::
|
||||
val sampleStringTask = settingKey[String]("A sample string task.")
|
||||
|
||||
val sampleIntTask = settingKey[String]("A sample int task.")
|
||||
|
||||
|
||||
sampleStringTask := System.getProperty("user.home")
|
||||
|
||||
|
||||
sampleIntTask := {
|
||||
val sum = 1 + 2
|
||||
println("sum: " + sum)
|
||||
|
|
@ -93,4 +92,3 @@ This page has been a quick taste; there's much much more about custom
|
|||
tasks on the :doc:`/Detailed-Topics/Tasks` page.
|
||||
|
||||
Move on to :doc:`Full-Def`.
|
||||
|
||||
|
|
|
|||
|
|
@ -108,8 +108,8 @@ What is `ModuleID`, `Project`, ...?
|
|||
To figure out an unknown type or method, have a look at the
|
||||
:doc:`Getting Started Guide </Getting-Started/Welcome>` if you have not.
|
||||
Also try the :doc:`index </Name-Index>` of commonly used methods, values, and types,
|
||||
the `API Documentation <../api/index>`_ and the
|
||||
`hyperlinked sources <../sxr/index>`_.
|
||||
the `API Documentation <../api/>`_ and the
|
||||
`hyperlinked sources <../sxr/>`_.
|
||||
|
||||
How do I add files to a jar package?
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Reference in New Issue