How to install and use the Kobalt IDEA plug-in.
Open the "Plugins" section of the IDEA preferences and find the "Kobalt" plug-in.
Install it and restart IDEA. If the plug-in was correctly installed, you should see a new menu called "Kobalt" juste before the "Help" menu:
The Kobalt IDEA plug-in offers the following features:
The plug-in will find your `Build.kt` file and it will automatically update your project's libraries and dependencies to reflect it. For example, suppose you have the following dependencies:
compile("org.apache.ant:ant:1.7.0", "com.google.inject:guice:4.0:no_aop", "com.beust:jcommander:1.48")
Select the menu "Kobalt / Sync build file", wait for a few seconds as the status in the lower left corner updates:
Bring up the "Project structure" window for your project and you should see the following:
A new library has been created with the dependencies from your build file. If you switch to the Module section, you should see this library added as a dependency of your modules:
The plug-in understands other scopes as well (e.g. "provided", "runtime"). For example, let's move a dependency in the "runtime" section of the build file:
dependencies { runtime("com.google.inject:guice:4.0:no_aop") compile("org.apache.ant:ant:1.7.0", "com.beust:jcommander:1.48") }
The libraries are now the following:
Notice that you now have two different libraries and that they have both been added with the correct scope to your project:
The source code can be found on github. If you need to report a bug, please make sure you include the log file, which you can find under the "Help" menu: