Skip to content

Conversation

@ccutrer
Copy link
Contributor

@ccutrer ccutrer commented Jun 30, 2022

see jruby/jruby#7262

rubygems/defaults/jruby.rb needs to not require a file from
jar-dependencies when it first runs, otherwise bundler can't
load a version of jar-dependencies that's installed later.
this commit is intended to have jruby.rb register the
post-install hook itself, and therefore defer loading
jar-dependencies until it's actually needed. jruby needs
an update for its defaults to match the new
jar_install_post_install_hook.rb. in the meantime, this
commit is compatible with the current defaults or an
updated one.

see jruby/jruby#7262

rubygems/defaults/jruby.rb needs to _not_ require a file from
jar-dependencies when it first runs, otherwise bundler can't
load a version of jar-dependencies that's installed later.
this commit is intended to have jruby.rb register the
post-install hook itself, and therefore defer loading
jar-dependencies until it's actually needed. jruby needs
an update for its defaults to match the new
jar_install_post_install_hook.rb. in the meantime, this
commit is compatible with the current defaults or an
updated one.
ccutrer added a commit to ccutrer/jruby that referenced this pull request Jun 30, 2022
fixes jruby#7262, but requires
jruby/jar-dependencies#78 to be merged
and released first.
@ccutrer
Copy link
Contributor Author

ccutrer commented Jun 30, 2022

see also jruby/jruby#7263

@mkristian mkristian merged commit 006fb25 into jruby:master Jul 1, 2022
@headius
Copy link
Member

headius commented Jul 2, 2022

@mkristian We still need to sit down and figure out how to share the load of maintaining these libraries. Perhaps you have some time to chat soon?

ccutrer added a commit to ccutrer/jruby that referenced this pull request Jul 2, 2022
fixes jruby#7262, but requires
jruby/jar-dependencies#78 to be merged
and released first.
@ccutrer
Copy link
Contributor Author

ccutrer commented Jul 2, 2022

speaking of maintaining... would anyone be opposed to me applying rubocop to this gem? I've got a couple features I want to add, but I'll admit I'm lazy and format my code terrible, and let rubocop do it.

@ccutrer ccutrer deleted the gem_hook_prevents_override_default_gem branch July 2, 2022 16:35
@mkristian
Copy link
Member

mkristian commented Jul 2, 2022 via email

@ccutrer
Copy link
Contributor Author

ccutrer commented Jul 2, 2022

Please do so .... no objections from my side

#79

@headius
Copy link
Member

headius commented Aug 1, 2022

@mkristian Has this gotten into a release yet? If not, we can go ahead and push it, assuming there's nothing complicated about doing so (instructions and permissions needed, of course).

@mkristian
Copy link
Member

@headius I did not release it yet.

so either

gem build jar-dependencies
gem push

or after @ccutrer added the 'default' tasks to the Rakefile

rake release

There are now github actions: https://github.com/mkristian/jar-dependencies/actions
which do run the specs.

There are some maven integration tests but they seems all very flaky and over time I comment them out more and more. They are for sure tricky to maintain from maven point of view. And launching maven from JRuby which kind of forks a new maven process with jruby seems kind of too much.

@headius
Copy link
Member

headius commented Aug 3, 2022

@mkristian Great! I will get this released today.

@headius
Copy link
Member

headius commented Aug 3, 2022

jar-dependencies 0.4.2 has been released!

@headius headius added this to the 0.4.2 milestone Dec 2, 2024
@headius
Copy link
Member

headius commented Dec 10, 2024

Revisiting this. We need an answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants