There is no public api to get ABI info.
But you can write an
incremental task with
@CompileClasspath normalization, to get incremental changes when ABI changes (that is what also JavaCompile uses). But if you want to get more information, e.g. find class dependencies, you will have to discover them with your own logic.