mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Added KobaltContext.
This commit is contained in:
parent
26109b4ad3
commit
5adad6c202
2 changed files with 2 additions and 2 deletions
|
@ -491,7 +491,7 @@ The main class of your plugin extends <code>BasePlugin</code> and implements its
|
||||||
public class ExamplePlugin : BasePlugin() {
|
public class ExamplePlugin : BasePlugin() {
|
||||||
override val name = "kobalt-example-plugin"
|
override val name = "kobalt-example-plugin"
|
||||||
|
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project, context: KobaltContext) {
|
||||||
println("Applying plugin ${name} with project ${project}")
|
println("Applying plugin ${name} with project ${project}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,7 +129,7 @@ import com.beust.kobalt.api.*
|
||||||
public class Main : BasePlugin() {
|
public class Main : BasePlugin() {
|
||||||
override val name = "kobalt-line-count"
|
override val name = "kobalt-line-count"
|
||||||
|
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project, context: KobaltContext) {
|
||||||
println("*** Applying plugin ${name} with project ${project}")
|
println("*** Applying plugin ${name} with project ${project}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue