Re: [jruby] How to Handle Large .jar Files in Git Repo

0 views
Skip to first unread message

Keith Bennett

unread,
Jun 28, 2023, 3:46:46 AM6/28/23
to JRuby project mailing list
Charlie -

I am finally getting around to looking at implementing this. Has the answer to this question changed at all? Can the same approach still be used? Has a better one come along?

Thanks,
Keith


On Sun, May 23, 2021 at 5:14 AM Charles Oliver Nutter <hea...@headius.com> wrote:
It does not require Maven to be installed. The jar-dependencies gem either fetches them itself or installs the ruby-maven gem that includes an embedded maven install. Try installing the psych gem to see it in action.

On Sat, May 22, 2021, 11:46 Keith Bennett <keithr...@gmail.com> wrote:
Charlie -

Thanks for responding. This solution requires that the user has maven installed, right? I was hoping rika could be used without needing to install maven. The target audience is people who want to use Apache Tika with Ruby, but may have little to no knowledge of, or commitment to, Java.

Thanks,
Keith


On Wed, May 12, 2021 at 2:27 PM Charles Oliver Nutter <hea...@headius.com> wrote:
Hey Keith! Sorry for the delay replying to this thread.

On Sat, Mar 6, 2021 at 9:24 PM Keith Bennett <keithr...@gmail.com> wrote:
> The Tika jar file is about 70 MB in size. I've already added one version of this file to the repo, but am concerned that over time, the accumulation of versions will make the repo troublesome due to its large size.
>
> How do you all handle multiple versions of these kinds of large files over time?

The JRuby repo used to have this problem, but then we moved to Maven.
For gems that include a Java jar file, you should use the
jar-dependencies feature to fetch it. A good example to look at would
be the psxch gem, which fetches the SnakeYAML library at install time
as if it were just a gem dependency:

https://github.com/ruby/psych/blob/master/psych.gemspec#L51-L63

- Charlie

Keith Bennett

unread,
Jun 28, 2023, 8:42:18 AM6/28/23
to JRuby project mailing list
To be clear, I'm not asking anyone else to do research for me, I'm just asking if anyone already knows the answer.

- Keith

Reply all
Reply to author
Forward
0 new messages