Skip to content

Instantly share code, notes, and snippets.

@bnorm
Last active November 21, 2020 19:42
Show Gist options
  • Save bnorm/4a831cdf246893e6b51a36fa8b3869a3 to your computer and use it in GitHub Desktop.
Save bnorm/4a831cdf246893e6b51a36fa8b3869a3 to your computer and use it in GitHub Desktop.
tasks.named("compileKotlin") { dependsOn("syncSource") }
tasks.register<Sync>("syncSource") {
from(project(":kotlin-ir-plugin").sourceSets.main.get().allSource)
into("src/main/kotlin")
filter {
// Replace shadowed imports from plugin module
when (it) {
"import org.jetbrains.kotlin.com.intellij.mock.MockProject" -> "import com.intellij.mock.MockProject"
else -> it
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment