Skip to content

Conversation

@purbon
Copy link

@purbon purbon commented Apr 7, 2015

Clean up jar dependencies code and so we end embedded dependencies the same gem. To do so I introduced a common code to load jars so we aim to simplify the management of jars in the long run. This loading code can be extracted to a common gem when agreed on a way to do this task.

Version 0.1.5 bump

Remove the vendor/ dir from the files added in the gemspec as this directory is no longer in use.

@ph comments? ideas? naming for the common loading module?

@purbon purbon self-assigned this Apr 7, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useless space

@ph
Copy link
Contributor

ph commented Apr 7, 2015

minor comment but LGTM! I love simplicity.

@wiibaa
Copy link
Contributor

wiibaa commented Apr 8, 2015

@purbon @ph is it not more or less what logstash::environment is doing for loading elasticsearch jar and could be generalized as proposed in elastic/logstash#1301

@purbon
Copy link
Author

purbon commented Apr 8, 2015

Yes @wiibaa, this is the same thing and the basic idea is to generalize this to follow the same pattern everywhere where a jar is required.

@ph
Copy link
Contributor

ph commented Apr 8, 2015

@wiibaa exactly, we are going to a more simpler flow and one less dependencies system to manage..

@wiibaa
Copy link
Contributor

wiibaa commented Apr 8, 2015

@purbon @ph thanks for the explanations and sorry for the silly question but shouldn't there be a require "lib/logstash-input-log4j_jars" somewhere ?

@ph
Copy link
Contributor

ph commented Apr 8, 2015

@wiibaa 🍻 :)

@wiibaa
Copy link
Contributor

wiibaa commented Apr 8, 2015

ok got it, the require was already there, but not the file because it was generated by jar-dependendies at build time...
@ph I should be the one offering the beers ;)
@purbon thanks for the lesson

@ph
Copy link
Contributor

ph commented Apr 8, 2015

@wiibaa If I ever go to europe I'll accept them.

@colinsurprenant
Copy link
Contributor

oh, I'm in Europe now, I can take care of that 😇

@jsvd
Copy link
Member

jsvd commented Apr 14, 2015

LGTM (didn't test in a logstash installation)

dependencies within the same JAR. To do so I introduced a common code to load jars so we aim to simplify the management of jars in the long run. Version 0.1.5 bump Remove the vendor/ dir fmor the files added in the gemspec as this directory is no longer in use reorg the code to be more generic for the jars loader ammend jar manager wrong placement refactor the files into the vendor dir as we discussed during the review process
@elasticsearch-bot
Copy link

Merged sucessfully into master!

@purbon purbon closed this in a3971de Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

6 participants