There is no such property: useAnt for the class: org.gradle.api.tasks.scala.ScalaCompileOptions

I installed class 3.0 and then git clone kafka from apache site. Then I ran gradle under the kafka folder. But I got the error "There is no such property: useAnt for the class: org.gradle.api.tasks.scala.ScalaCompileOptions". I looked at build.gradle for useAnt and removed this line. The error still persists. Even I removed all the scalsCompile related part from build.gradle. I still get the same error.

I searched the web and found that useAnt is deprecated in gradle 3.0, but why does this error still happen if I remove useAnt from build.gradle?

+7
scala gradle
source share
1 answer

Assuming these lines, build.gralde seems to fix the problem in my project:

ScalaCompileOptions.metaClass.daemonServer = true ScalaCompileOptions.metaClass.fork = true ScalaCompileOptions.metaClass.useAnt = false ScalaCompileOptions.metaClass.useCompileDaemon = false 
+11
source share

All Articles