No such property: useAnt for class: org.gradle.api.tasks.scala.ScalaCompileOptions

I installed grade 3.0 and then git clone kafka from apache site. Then I ran gradle under kafka folder. But I got the error "No such property: useAnt for class: org.gradle.api.tasks.scala.