Jose Monteiro
05/09/2025, 9:17 AMcompileOnly
in our application, to get access to some `@SystemApi`s or @hide
, however starting with 2.1.20 classes that are hidden are still working but @SystemApi
methods no longer resolve. I managed to get around it by setting the library manually in the KotlinCompile
task like so tasks.withType(KotlinCompile::class.java) { libraries.setFrom("pathToLib") }
.
We could have also stripped the @SystemApi
annotation from the sources but we didn't want to rebuild it and have to maintain all those changes.
Is anyone aware that this change was intensional? simply making the compile stricter in relation to its dependencies?