https://kotlinlang.org logo
#getting-started
Title
# getting-started
g

Gleb Minaev

08/01/2022, 4:13 PM
Hi! Can someone tell me what is
jvm-abi-gen
compiler plugin that was mentioned in 1.7.20-Beta release notes? I can not find any documentation on it.
d

Dominaezzz

08/01/2022, 5:25 PM
It generates a text file describing the public api of a library. It's particularly useful for checking for breaking changes in Kotlin/JVM.
i

ilya.gorbunov

08/01/2022, 5:31 PM
@Dominaezzz No, it's not quite that. It generates a jar stripped of all function bodies and other private details. The idea is that if you change only something private in your library, the abi jar remains the same and depending projects that use that jar as a compile-only dependency do not get recompiled.
d

Dominaezzz

08/01/2022, 5:33 PM
Ahhhh
g

Gleb Minaev

08/01/2022, 5:48 PM
Oh, very interesting, thanks. Am I right there is no documentation for the plugin but its sources?
36 Views