SamWithReceiver compiler plugin

We all know about the allopen compiler plugin, and today while browsing through the upcoming Gradle release notes, I learned about the SamWithReceiver compiler plugin.

From what I could gather, SamWithReceiver looks like an useful thing to have for projects that are integrating Kotlin, but need to code the primary API in Java.

Is there any available documentation, and is this plugin ready to use?

This plugin was built specifically to support Gradle, and at this time we have no plans to extend it to support other use cases.