I’m trying to integrate kotlin with our platform that doesn’t support the full Java runtime library. I’m using the
<withKotlin> Ant task inside a
<javac> ant task to do the compilation. We run into issues later down the line in our toolchain when it is determined that some of the classes or methods that kotlinc has compiled into the bytecode doen’t exist in our runtime.
I’d like to force compliance at compile-time. With javac we can do this by setting the bootclasspath to use our libs.
<withKotlin> doesn’t seem to respect this though… it allows use of apis that aren’t on the bootclasspath.
Is there any equivalent way to achieve this type of compile-time checking with kotlin?
Thanks for any pointers.