I get the following error message: macro annotation could not be expanded (the most common reason for that is that you need to enable the macro paradise plugin; another possibility is that you try to use macro annotation in the same compilation run that defines it)
Hi! I also hit this issue and can’t find a workaround for this. Anyone knows how to enable macroparadise scalac plugin in gradle??
It is necessary for people that want to use gradle for compilation of project in scala 2.10, and yes, a lot of projects still stick to 2.10, just to mention few: Apache Kafka, Apache Samza.
I find gradle such a better tool than sbt, it would really be great if it support Scala better (veery popular language lately).
I found the following work around - tested and worked:
…
configurations {
scalaCompiler
}
configurations.scalaCompiler.transitive = false
…
dependencies {
…
scalaCompiler “org.scalamacros:paradise_2.11.7:2.1.0-M5”
…
}
…