Skip to content

How to make extension recognize compiled .class files in Gradle project? #3884

@ArmoredPony

Description

@ArmoredPony

I have a project with Java and Kotlin source code. This project is being managed by Gradle. All compiled files are placed into a separate directory out, compilation process is also managed by Gradle through terminal. The extension correctly handles import of Java classes into other Java classes, however it does not recognize imports of files written in Kotlin. I do not expect this extension to recognize Kotlin files, however, they are compiled into .class files and put into out/package/name/ directory with respect to their package name. Can I make the extension recognize these .class files somehow? I tried to disable java.import.gradle.enabled and add "out" to sourcePath, then I tried to create and modify a .classpath file, I also tried to tweak Gradle config files, but nothing worked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions