Hi. What's the best way of forcing IntelliJ to see...
# kapt
n
Hi. What's the best way of forcing IntelliJ to see the sources generated by kapt through Gradle? I'm currently using the
Copy code
sourceSets.main.java.srcDir file("$buildDir/generated/source/kapt/main/")

idea {
    module {
        generatedSourceDirs += file("$buildDir/generated/source/kapt/main/")
    }
}
Which seem to work somewhat, but not quite as expected (sources get marked as just sources, not generated ones, and i have to point to /main otherwise i get main. as part of the package name). I'm using kotlin, kotlin-kapt and idea plugins for Gradle