diff --git a/plug-in-development/index.html b/plug-in-development/index.html index acaf433..3c632d0 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -46,6 +46,7 @@ If you are curious to get a quick feel for what a Kobalt plug-in looks like, I s and keep reading.
The simplest way to run your plug-in in your IDE is to create a main function in the main class of your
plug-in as follows:
@@ -91,6 +92,26 @@ val p = project {
with your plug-in. You can set a breakpoint in one of your tasks or anywhere that gets invoked. Don't forget
to invoke this launch configuration with the regular parameters passed to Kobalt (e.g. "assemble"
).
+ In the process of building your plug-in, you will probably be invoking it from test projects and since
+ you will be making changes to your plug-in and generating jar files often, you might find it more convenient
+ to have these test projects point to your local jar file instead of the Maven one (which would require you
+ to upload your plug-in all the time). For this, you might find the file()
and homeDir
+ ()
directives convenient:
+
+ // Regular dependency + compile("com.example:myPlugin:0.1") + + // Development dependency + compile(file(homeDir("kotlin/myPlugin/kobaltBuild/libs/myPlugin-0.1.jar")) ++
+ With this latter configuration, simply build your plug-in to generate the jar file with ./kobaltw
+ assemble
, switch to your test project and invoke Kobalt on it so that your plug-in will get invoked
+ and you should see the latest version of your code being invoked.
+