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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user