Skip to content

Commit

Permalink
Merge pull request #554 from xuwei-k/AutoPlugin-requires-default
Browse files Browse the repository at this point in the history
sbt.AutoPlugin#requires default value is JvmPlugin. not empty
  • Loading branch information
dwijnand authored Nov 20, 2017
2 parents 9801919 + 70d4d60 commit 8716a81
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ object SbtLessPlugin extends AutoPlugin {

The `requires` method returns a value of type `Plugins`, which is a DSL for constructing the dependency list. The requires method typically contains one of the following values:

- `empty` (No plugins, this is the default)
- `empty` (No plugins)
- other auto plugins
- `&&` operator (for defining multiple dependencies)

Expand All @@ -236,7 +236,7 @@ Auto plugins also provide a way for plugins to automatically attach themselves t
projects if their dependencies are met. We call these triggered plugins,
and they are created by overriding the `trigger` method.

For example, we might want to create a triggered plugin that can append commands automatically to the build. To do this, set the `requires` method to return `empty` (this is the default), and override the `trigger` method with `allRequirements`.
For example, we might want to create a triggered plugin that can append commands automatically to the build. To do this, set the `requires` method to return `empty`, and override the `trigger` method with `allRequirements`.

```scala
package sbthello
Expand Down

0 comments on commit 8716a81

Please sign in to comment.