Caused by: org.gradle.api.internal.MissingMethodException: Could not find method add() for arguments [licenseMain, class nl.javadude.gradle.plugins.license.License] on task set.
most likely you’re using a deprecated method that was removed in gradle 2.0-rc1. Do you get deprecation warnings when running your build with gradle 1.12?
Either kafka build files or one of the plugins it uses (license plugin?) calls out deprecated method that were removed in 2.0.
If the problem exists in the kafka build files, you can fix it easily. If it exists in one of the 3rd party plugins (license plugin?) then you need to use the newer version of that plugin, a version that fixes the deprecation problems. Alternatively, you can stay at current version until the 3rd party plugin catches up.
Method ‘add’ on the task container was deprecated long time ago. From time to time (major version releases) we need to remove the deprecated methods.