mirror of https://github.com/sbt/sbt.git
Updated Server Build level API (markdown)
parent
797f96c041
commit
6b749e3c0d
|
|
@ -1,13 +1,13 @@
|
||||||
The server aspects to sbt build will be exposed to build/plugin authors as follows:
|
The server aspects to sbt build will be exposed to build/plugin authors as follows:
|
||||||
|
|
||||||
|
|
||||||
1. A new key available which can be used to interact with the server:
|
# 1. A new key available which can be used to interact with the server:
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
val uiContext = taskKey[sbt.UIContext]("All user interaction should be driven through this interface.")
|
val uiContext = taskKey[sbt.UIContext]("All user interaction should be driven through this interface.")
|
||||||
```
|
```
|
||||||
|
|
||||||
2. A new interface:
|
# 2. A new interface:
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
package sbt
|
package sbt
|
||||||
|
|
@ -21,7 +21,8 @@ trait UIContext {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
3. An addition to plugin API:
|
# 3. An addition to plugin API:
|
||||||
|
|
||||||
```scala
|
```scala
|
||||||
trait Plugin {
|
trait Plugin {
|
||||||
def serializers: Seq[(AttributeKey[_], Format[_])] = Nil
|
def serializers: Seq[(AttributeKey[_], Format[_])] = Nil
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue