# Logstash Custom Plugin can't add the local dependencies

**URL:** <https://discuss.elastic.co/t/logstash-custom-plugin-cant-add-the-local-dependencies/179830>\
**Category:** Logstash\
**Created:** [May 6, 2019, 5:54pm UTC](https://discuss.elastic.co/t/logstash-custom-plugin-cant-add-the-local-dependencies/179830 "2019-05-06T17:54:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [May 6, 2019, 5:54pm UTC](https://discuss.elastic.co/t/logstash-custom-plugin-cant-add-the-local-dependencies/179830/1 "2019-05-06T17:54:52Z")

</div>

Hi,  
We use artifactory as the gem source and we have some locally built gems.

I tried to use one of the gem in the customized logstash filter plugin as a runtime dependency and tried to call inside the filter, which runs fine with the specs, but It fails at the installation of plugin in the logstash, mentioning no gem found in Vendor/Cache.

So, isn't the design doesn't support the external gems in the plugin? Please let me know as I got to change my plugin design if that's not the case.

Here is the error log:

```auto
Bundler::VersionConflict: Bundler could not find compatible versions for gem "rubocop":
  In Gemfile:
    logstash-filter-kins_logs (= 0.2.0) java depends on
      rubocop (~> 0.44.1) java
Could not find gem 'rubocop (~> 0.44.1) java', which is required by gem 'logstash-filter-kins_logs (= 0.2.0) java', in any of the sources.

```

Thanks!

---

<div class="post-metadata">

**Author:** ![paul1243](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@paul1243](https://discuss.elastic.co/u/paul1243)\
**Post date:** [May 7, 2019, 6:10pm UTC](https://discuss.elastic.co/t/logstash-custom-plugin-cant-add-the-local-dependencies/179830/2 "2019-05-07T18:10:56Z")

</div>

Hi @magnusbaeck - any help on this please. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 4, 2019, 6:10pm UTC](https://discuss.elastic.co/t/logstash-custom-plugin-cant-add-the-local-dependencies/179830/3 "2019-06-04T18:10:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
