From 73e095e4bad0d205c89728abdfe316583b8d8919 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 28 Nov 2015 11:47:00 -0800 Subject: [PATCH] Classpath interceptors. --- plug-in-development/index.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/plug-in-development/index.html b/plug-in-development/index.html index 0c9660a..2559e92 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -192,12 +192,16 @@ Some plug-ings produce projects (Java, Kotlin) while others don't (Packaging, Ap

Interceptors transform data that Kobalt passes them.

-

Compiler interceptors (ICompilerInterceptor)

-

- Plug-ins that implement this interface get a chance to alter the arguments that are passed to the various compilers (source files, classpath, arguments, etc...). -

+

Compiler interceptors (ICompilerInterceptor)

+

+ Plug-ins that implement this interface get a chance to alter the arguments that are passed to the various compilers (source files, classpath, arguments, etc...). +

+

Classpath interceptors (IClasspathInterceptor)

+

+ Plug-ins that implement this interface get a chance to alter the dependencies of a project (dependencies{}, dependenciesTest{}, ...) before Kobalt sees them. +

-

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.