November 2018
Intermediate to advanced
388 pages
9h 5m
English
In Gradle, we can enable the kotlin-sam-with-receiver plugin using buildscript with the kotlin-noorg artifact, as follows:
buildscript { dependencies { classpath "org.jetbrains.kotlin:kotlin-sam-with-receiver:$kotlin_version" } }apply plugin: "kotlin-sam-with-receiver"
We can then specify the annotations that apply to the classes that are annotated with this list of meta-annotations to enable the plugin:
samWithReceiver { annotation("org.rao.kotlin.javaee.MySamInterface") }
Read now
Unlock full access