ZacSweers/redacted-compiler-plugin

Integrate kotlin ABI validator

ZacSweers opened this issue · 4 comments

We're not 1.0 yet but we might be some day! We can integrate it now but allow breaking changes until 1.0 obviously.

https://github.com/Kotlin/binary-compatibility-validator

Which module(s) would you want this added for? I would have thought binary compatibility is not important for Gradle plugins and compiler plugins because by definition you're always recompiling your project when you update them. Do you want to track the binary compatibility of the output of the compiler plugin? Or am I missing a reason it's important for the plugin itself?

For compiler plugins sure, but Gradle plugins absolutely have a public API (namely the extension for configuration).

Yeah it has a public API and it's clear source compatibility would be important. The need for binary compat isn't clear to me—but I haven't gone very deep into Gradle plugin writing before. Can Gradle plugins transitively depend on other Gradle plugins and have those dependency versions changed at Gradle-runtime?

Anyway, I'd be happy to submit a PR to add this if you want!

Yes they can, you can even have plugins that solely exist to configure other plugins. Don't worry about a PR, I have a branch for this locally already