Logstash filter plugin development

Hello team. I would like to develop Logstash filter plugin. During build the gem file I got error as below:

FAILURE: Build failed with an exception.

* Where:
Script '/home/kali/github/logstash/rubyUtils.gradle' line: 212

* What went wrong:
A problem occurred evaluating script.
> Could not find method register() for arguments [downloadJRuby, class de.undercouch.gradle.tasks.download.Download, rubyUtils_4cq08gienihrpmy4hdmzlt5l8$_run_closure2@68dbfa04] on task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.
  1. At first I am suspect I could not reach the Maven repo, but I am able to reach there.
  2. I try comment out versions.yml for jruby-runtime-override: but still no luck.

Really appreciate if you could share what I can do to fix this? I am using all latest repo from github for logstash, logstash-core and sample filter plugin.