cbeust / kobalt-intellij-plugin

An IntelliJ plug-in for Kobalt
21 stars 7 forks source link

Add support for multiple build directories #76

Closed cbeust closed 7 years ago

cbeust commented 7 years ago

As of 1.0.44, getDependenciesGraph returns an additional buildContentRoots parameter:

{
   "projects": [],
   "allTasks": [],
   "pluginDependencies": [],
   "buildContentRoots": [
      "kobalt",
      "module/test/kobalt"
   ]
}

Each item in this array should be added as a Content Root for the Build.kt module, and then, each of them should add a source directory called "src".

For the example above, this means that from the root of the project, both kobalt/src and modules/test/kobalt/src contain build files.

dmitry-zhuravlev commented 7 years ago

@cbeust Is it possible, that some of the directories mentioned in buildContentRoots not exist?

cbeust commented 7 years ago

No, this should not happen.