From 729205059e954e5ccacd4855922e338b9899a0ad Mon Sep 17 00:00:00 2001
From: Cedric Beust
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.
+