1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 03:57:11 -07:00

Added KobaltContext.

This commit is contained in:
Cedric Beust 2015-10-03 16:00:56 -07:00
parent 26109b4ad3
commit 5adad6c202
2 changed files with 2 additions and 2 deletions

View file

@ -491,7 +491,7 @@ The main class of your plugin extends <code>BasePlugin</code> and implements its
public class ExamplePlugin : BasePlugin() {
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}")
}
}

View file

@ -129,7 +129,7 @@ import com.beust.kobalt.api.*
public class Main : BasePlugin() {
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}")
}
}