将Scala编译器插件添加到Gradle中的scalaCompile任务的最佳方法是什么?
configurations {
scalaCompilerPlugin
}
dependencies {
scalaCompilerPlugin "org.scalamacros:paradise_2.11.7:2.1.0"
}
tasks.withType(ScalaCompile) {
scalaCompileOptions.additionalParameters = [
"-Xplugin:" + configurations.scalaCompilerPlugin.asPath
]
}