Unable to install the logstash-filter-grok plugin

I followed the installation steps but when I install the plugin it shows this error:
ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-core-plugin-api":
In snapshot (Gemfile.lock):
logstash-core-plugin-api (= 1.10.0)

In Gemfile:
logstash-filter-geoip (>= 0) java depends on
logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-geoip (>= 0) java depends on
  logstash-core-plugin-api (~> 1.0) java

logstash-filter-grok (= 3.0.1) java depends on
  logstash-core-plugin-api (~> 2.0) java

logstash-core-plugin-api (= 1.10.0) java

Running bundle update will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Anyone knows why's that?
Thanks a lot!

Grok is included as part of the core LS release, you don't need to install it.

Thanks for your reply!
Is the logstash-input-file plugin included as part of the core LS release too?

Yes.

Understood.Thanks so much!