Hi, I need some help around usage of psi packages ...
# compiler
r
Hi, I need some help around usage of psi packages in kotlin compiler Background: I am trying to take out kotlin-android-extensions compiler plugin out of the kotlin source code. Now when I am try to apply my own plugin, I am seeing that the compiler is trying to invoke psi apis from this package org.jetbrains.kotlin.com.intellij.psi.* but in original kotlin-android-extensions they have used this package: com.intellij.psi and because of this I am unable to apply plugin Now the only way to get psi apis is from kotlin-embeddable module but this will break the compatibility intelliJ plugin of kotlin-android-extension compiler plugin. So to maintain the compatibility I still want to use psi apis from com.intellij.psi (this is from intelliJ core module) How can I make the kotlin-compiler invoke psi related apis from org.jetbrains.kotlin.com.intellij.psi.* ? This is my build.gradle for your reference:
Copy code
plugins {
    id 'maven-publish'
}
apply plugin: 'org.jetbrains.kotlin.jvm'

def artifactId = "android-extensions-compiler"
group = 'rahul.android.extensions.compiler'
version = "$ANDROID_EXTENSIONS_COMPILER_VERSION"

repositories {
    mavenCentral()
    google()
    mavenLocal()
}

dependencies {
    implementation("com.android.tools.external.com-intellij:intellij-core:$INTELLIJ_CORE_VERSION")
    implementation("org.jetbrains.kotlin:kotlin-compiler-embeddable:$KOTLIN_VERSION")
    implementation("org.jetbrains.kotlin:kotlin-scripting-compiler:$KOTLIN_VERSION")
    implementation("rahul.android.extensions.compiler:android-extensions-compiler-runtime:$ANDROID_EXTENSIONS_COMPILER_VERSION")
}

publishing {
    publications {
        mavenJava(MavenPublication) {
            from components.java

            // Publish the plugin to Maven Local
            groupId = "${group}"
            artifactId = "${artifactId}"
            version = "${version}"
        }
    }
    repositories {
        mavenLocal()
    }
}