Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 18 09:45
    josselinchevalay commented #409
  • Aug 17 09:16
    josselinchevalay commented #409
  • Aug 06 17:09
    rtyler commented #409
  • Aug 06 14:12
    josselinchevalay reopened #409
  • Aug 06 14:12
    josselinchevalay closed #409
  • Aug 06 14:12
    josselinchevalay commented #409
  • Aug 02 20:44
    rtyler labeled #409
  • Aug 02 20:44
    rtyler labeled #409
  • Aug 02 20:44
    rtyler commented #409
  • Jul 29 12:38
    josselinchevalay opened #409
  • Jun 23 00:23
    amimas commented #404
  • Jun 22 20:31
    headius commented #408
  • Jun 22 20:26
    rtyler commented #408
  • Jun 22 20:25
    rtyler commented #408
  • Jun 22 20:13
    ysb33r commented #408
  • Jun 22 19:26
    headius opened #408
  • Jun 22 19:23
    headius commented #404
  • Jun 03 14:15
    blling opened #407
  • May 31 07:04
    boris-petrov closed #387
jayjlawrence
@jayjlawrence
Oh, I just grabbed the source and did a build like I would do on any app/library that I'd assess in more depth. There's often a thing here or there that might need to be tweaked to make it work just so. I'm sure you've been there yourself.
Also not really knowing how Gradel works - I didn't know I should have done it differently
R. Tyler Croy
@rtyler
the Gradle build system certainly allows for custom local plugins and things like that, but it's definitely a bit off the user-friendly path
jayjlawrence
@jayjlawrence
no kidding
R. Tyler Croy
@rtyler
JRuby/Gradle works very much how Gradle people might expect it to work, Rubyists will have a bit of a harder time because of the learning curve inherent in Gradle :/
jayjlawrence
@jayjlawrence
Never having used it, nor read a shred of docs on it, that gap needs to be bridged if Rubyists are to flock here (run from there?)
I've had one too many bundler meltdowns in my life
I've got a little webserver project that I want to see if I can jar it up successfully. Maybe this is a good article to write while I'm at it.
R. Tyler Croy
@rtyler
what deployment environment does your archive go into?
jayjlawrence
@jayjlawrence
I'm going to run on a Windows machine - so right now I'm just I'm just making a jar that bootstraps a bit of ruby for a Webrick server
Now that I want to add some dependencies and maybe use sinatra I need to get a bit more elaborate
R. Tyler Croy
@rtyler
so if you're using a ruby web server in the process, the jruby-gradle-jar-plugin is definitely a good fit, I wouldn't worry about wars at all
jayjlawrence
@jayjlawrence
What's good about a project like this is it is practical, there's not a zillion moving parts, and it would help others understand the underlying mechanisms (making a jar, dependency path resolution etc)
R. Tyler Croy
@rtyler
wars are very special java archives (jars) with silly metadata
jayjlawrence
@jayjlawrence
Yeah, my main deployment is under a tomcat as a war - I want to cut Tomcat out - it doesn't seem to provide any value.
R. Tyler Croy
@rtyler
https://github.com/jruby-gradle/jruby-gradle-plugin/tree/master/examples/self-executing-jar would be a good scaffold to start with, the 'gradleTest' type things in build.gradle can be removed since those are used only by our integration tests
that said, I don't have a Windows environment so things can get goofy, but we do have everything running in CI passing on Windows via AppVeyor
jayjlawrence
@jayjlawrence
I deploy to windows, try to avoid the stuff as much as possible otherwise
R. Tyler Croy
@rtyler
my day is coming to an end however, catch ya later :wave:
jayjlawrence
@jayjlawrence
Have a good one and thanks for the pointers. I'll circle back in the near future re edits
Blane Dabney
@raelik
The way I have mine set up is an 'artifact' jar, where it just contains jruby, my gems and my jar deps.
The jar itself executes as the ruby interpreter
Lets me keep all my project's Ruby files on the filesystem, and I set up wrapper scripts to run jRuby, or gem binaries like irb, puma, rspec, etc
Schalk W. Cronjé
@ysb33r
@rtyler we need to sort this issue with publishing the core plugin. I think we should change it so that plugins are published to portal directly and a backup published to Bintray.
Schalk W. Cronjé
@ysb33r
ping @rtyler :point_up: I am checking up what can be done to resolve this, but I suspect no more libraries can be added to Bintray and then sync'd to Gradle portal. We might have to publish directly there and also to Bintray.
Schalk W. Cronjé
@ysb33r
Schalk W. Cronjé
@ysb33r
@rtyler have you seen gradle/plugin-portal-requests#22 ? I think you have to perform the request to add.
Oohh, I managed to do it.
Schalk W. Cronjé
@ysb33r
The world has exploded this morning with Torquebox being down again and we are only half-ready with a solution.
Boris Petrov
@boris-petrov

Hi, I'm trying to migrate to 2.0.0-alpha2 to work around Torquebox being down - I managed to get almost there but when installing the RuboCop gem, which in turn installs jaro_winkler, I get this failure:

make "DESTDIR=" clean
Makefile:225: *** multiple target patterns.  Stop.

I think for some reason the original (non-java) version of the gem is being installed and not the Java one. Any ideas why?
Another thing is that doing:

jruby.jrubyVersion = jRubyVersion

Doesn't modify the JRuby version that is used by jrubyPrepareRubocop - instead, I had to do:

tasks['jrubyPrepareRubocop'].jruby.jrubyVersion = jRubyVersion

Not sure if that is a bug or what.

Boris Petrov
@boris-petrov
Here is an example project:
https://github.com/boris-petrov/jruby-gradle-bug
Just run gradle rubocop and it doesn't work. Where am I making a mistake? This is on JDK 13.0.1, Gradle 6.0.1
Schalk W. Cronjé
@ysb33r

@boris-petrov Disclaimer. It has not been tested on JDK13, but I do not think that is the issue.
It is totally possible that the wrong GEM could have been pulled. I tested various scenarious, but there is always a chance for seomthign that behaves slightly differently.

First check that you can do is to run your build with --debug and check that the gem resolver does.

Boris Petrov
@boris-petrov
I'll do that straight away.
Actually can you try the project I shared?
It's probably going to be easier for you to debug. If it breaks as it does on my side I mean.
Schalk W. Cronjé
@ysb33r
I am doing that as well. But you might spot something before me.
Boris Petrov
@boris-petrov
Does it break for you too?
Schalk W. Cronjé
@ysb33r
You should raise a defect about the jrubyVersion you are seeing BTW
Yes it breaks.
Boris Petrov
@boris-petrov
You mean open an issue in GitHub?
Will do. Do you want me to open also for the issue with RuboCop also?
Schalk W. Cronjé
@ysb33r
It is worthwhile doing that too. At least we can add a solution to that if we figure out it is not a bug.
Also you can look in ~/.gradle/rubygems-ivyxml-cache. THat is where the Ivy cache is for the Ruby gems. It might help to with diagnosis.
Boris Petrov
@boris-petrov
I see no mention of -java when I search for jaro_winkler in the --debug output. I think this is the problem. This worked before. I'm not sure who and when decides whether to ask for the Java version of a gem but I guess the issue is somewhere there.
Corneil du Plessis
@corneil
If I had a working gradle build for generating html and pdf using :
jruby-gradle-plugin:[1.5.0,2.0) and org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.18 what should I change to get it working again?
Schalk W. Cronjé
@ysb33r
@corneil if you are using the AsciidoctorPdf tasks it should not be affected by the Torquebox issue, UNLESS you are also using the Reveal.js plugin as that directly uses the older veriosn of the jruby-gradle plugin under the hood.
@boris-petrov I agree. I am seeing the same. I don't have more time today, but I'll look into it tomorrow.
Boris Petrov
@boris-petrov
@ysb33r - thanks a lot! I appreciate your time. Is there a way to configure 1.7.0 to work without Torquebox until this is resolved?
Schalk W. Cronjé
@ysb33r
@boris-petrov Only if you have access to another maven-gem-proxy service.
Boris Petrov
@boris-petrov
Well, if there are no other public ones, then no... :D