Hey Kotlin team! :kotlin: I was wondering if there is a public API available for incremental compil...
i
Hey Kotlin team! K I was wondering if there is a public API available for incremental compilation that could be integrated into a custom build tool. I noticed that
CompileService
and
IncrementalCompilerRunner
are currently intended for use with Gradle, but I was hoping to use them in a different context. Do you have any plans to add support for such API in the future? Thank you in advance for any help!
d
cc @Evgenii Mazhukin
e
Hi! We have an experimental version of such an API in the Kotlin repo, it's called Build Tools API. You can see how it's used in Gradle: https://github.com/JetBrains/kotlin/blob/09233fce78122abd0944810c6fe6093bdb90600f/[…]ins/kotlin/compilerRunner/btapi/BuildToolsApiCompilationWork.kt Currently it supports Jvm target. It is a prototype of the API, but we plan to continue developing and stabilizing it.
gratitude thank you 1
🆒 1