FIR IDE: Split resources to three folders which is needed for FIR plugin

The "resources" is common for both plugins,
 while resources-descriptors & resources-fir belongs
 to corresponding plugins
This commit is contained in:
Ilya Kirillov
2020-05-25 11:09:50 +03:00
parent 2290c32a83
commit 3ca317e0ce
6 changed files with 8 additions and 0 deletions
+8
View File
@@ -6,6 +6,9 @@ plugins {
} }
val kotlinVersion: String by rootProject.extra val kotlinVersion: String by rootProject.extra
val isFirPlugin: Boolean
get() = rootProject.findProperty("idea.fir.plugin") == "true"
repositories { repositories {
maven("https://jetbrains.bintray.com/markdown") maven("https://jetbrains.bintray.com/markdown")
@@ -25,6 +28,11 @@ sourceSets {
"idea-repl/resources", "idea-repl/resources",
"resources-en" "resources-en"
) )
if (isFirPlugin) {
resources.srcDir("resources-fir")
} else {
resources.srcDir("resources-descriptors")
}
} }
"test" { "test" {
projectDefault() projectDefault()