just have to specify a command line argument for javac: -Xplugin:dataContextPlugin. I don’t know the details of gradle, but hopefully they document how to provide flags to javac.
I use this solution with options.compilerArgs << '-Xplugin:dataContextPlugin', and It doesn’t work(
I have an error: plug-in not found: dataContextPlugin