# Dependency Conflicts while creating Pubsub output plugin

**URL:** <https://discuss.elastic.co/t/dependency-conflicts-while-creating-pubsub-output-plugin/108269>\
**Category:** Logstash\
**Created:** [November 19, 2017, 7:03am UTC](https://discuss.elastic.co/t/dependency-conflicts-while-creating-pubsub-output-plugin/108269 "2017-11-19T07:03:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NirKa](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@NirKa](https://discuss.elastic.co/u/NirKa)\
**Post date:** [November 19, 2017, 7:03am UTC](https://discuss.elastic.co/t/dependency-conflicts-while-creating-pubsub-output-plugin/108269/1 "2017-11-19T07:03:21Z")

</div>

Hi,

I'm trying to create a custom plugin for publishing events to google pubsub.  
Currently I'm using:

Logstash 6.0.0  
Trying to use [Google:☁:Pubsub API](https://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud/v0.45.0/google/cloud/pubsub/project)

I was able to build the gem successfully.  
In the gemspec I added dependency for google-cloud-pubsub (latest version),  
When I installed the gem, I get this error:

> ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "faraday": In snapshot (Gemfile.lock): faraday (= 0.9.2)

> In Gemfile: logstash-core (\>= 0) java depends on elasticsearch (\>= 5.0.4, ~\> 5.0) java depends on elasticsearch-transport (= 5.0.4) java depends on faraday (\>= 0) java

> logstash-output-pubsub (= 0.2.0) java depends on  
> google-cloud-pubsub (\< 0.28.1, ~\> 0.27.0) java depends on  
> google-cloud-core (~\> 1.0) java depends on  
> google-cloud-env (~\> 1.0) java depends on  
> faraday (~\> 0.11) java

> Running bundle update will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict.

and when I look on the Gemfile.jruby-2.3.lock I see specific line for faraday (0.9.2).

Is there a way to update the farday version in the Gemfile?  
I tried bundle update but I got a different error message...

Thanks

---

<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:** [December 17, 2017, 7:04am UTC](https://discuss.elastic.co/t/dependency-conflicts-while-creating-pubsub-output-plugin/108269/2 "2017-12-17T07:04:14Z")

</div>

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