From 24562d6e8e924b273e3422efb56768160d220df9 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 30 Nov 2015 17:23:53 -0800 Subject: [PATCH] Formatting. --- plug-in-development/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plug-in-development/index.html b/plug-in-development/index.html index cab8233..6f62730 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -278,7 +278,9 @@ fun affinity(project: Project, context: KobaltContext) : Int
 override fun affinity(project: Project, context: KobaltContext) =
     if (project.sourceSuffix == ".java") 1 else 0
-

Directives

+ + +

Directives

Directives are functions that users of your plug-in can use in their build file in order to configure your plug-in. These can be any kind of Kotlin function but in the interest of preserving a clean syntax in the build file, it's recommended to use the type safe builder pattern, as described here.