These are chat archives for jruby-gradle/jruby-gradle-plugin

9th
Apr 2016
Schalk W. Cronjé
@ysb33r
Apr 09 2016 16:36
@mkristian Can you maybe help me out with some stupid question? I am trying to get https://github.com/tourdedave/the-internet built using JRuby and then packaged into a library jar.
Instructions said to rackup
but besides that, I want to see if it is possible to pack it up without resorting to bundler
Schalk W. Cronjé
@ysb33r
Apr 09 2016 16:54
never mind. I got that to run.
Schalk W. Cronjé
@ysb33r
Apr 09 2016 17:00
Just trying to work out the best way to put it in a JAR. I think creating both a library (so that I can call it from Spock) and a fatjar so that it can be run standalone
R. Tyler Croy
@rtyler
Apr 09 2016 17:14
@ysb33r as a library jar, how would this actually work?
Schalk W. Cronjé
@ysb33r
Apr 09 2016 17:21
@rtyler, the idea is just instantiate it via a small java wrapper, which we could do in the old JAR implementation. I woudl assume this is still possible in the newer versions.
I am going to push my first part so far to github
Schalk W. Cronjé
@ysb33r
Apr 09 2016 17:47
as it stands you can do ./gradlew runApp and it will download, unpack and run the service.
when I get back from getting the pizza, I’m going to look at building the JARs
Schalk W. Cronjé
@ysb33r
Apr 09 2016 18:32
mmm.. Is 1.1.0 still the last release of jar ?
It complains about > No value has been specified for property 'mainClass’.
then it you add mainClass, then it says > can not have mainClass for library
Christian Meier
@mkristian
Apr 09 2016 19:02
@ysb33r jruby-gradle-jar-plugin:1.2. has the library bits fixed
Schalk W. Cronjé
@ysb33r
Apr 09 2016 19:03
Christian Meier
@mkristian
Apr 09 2016 19:04
that is why people use the 1.1.0 instead of the latest - like recently with aws stuff
or do I use a local build and it is not released ?
Schalk W. Cronjé
@ysb33r
Apr 09 2016 19:06
Aha, I know what that problem is. The build scripts are only releasing to bintray, not plugin portal
Schalk W. Cronjé
@ysb33r
Apr 09 2016 19:16
I don’t think the sync for jcenter to plugin portal works.
If I do a PR now for plugin portal, can someone push to portal? I’m not sure which credentials can do that. @rtyler do you know?
Schalk W. Cronjé
@ysb33r
Apr 09 2016 20:26
also when using initScript ‘foo.rb' I would not expect all of JARs to be expanded. Or I could, depending on pinut of view. What this leads to is unexpected behaviour.
Christian Meier
@mkristian
Apr 09 2016 20:29
all jars or just jruby-complete and jruby-mains ?
Schalk W. Cronjé
@ysb33r
Apr 09 2016 20:35
definitely the latter two as I have not added any additional jars yet
Christian Meier
@mkristian
Apr 09 2016 20:36
that is the same as initScript runnable() which makes sense if you want the init-scipt to be executed. all other jars are add to the jar as is
Schalk W. Cronjé
@ysb33r
Apr 09 2016 21:03
What’s good about what I’m doing atm is finding some use-cases we do not cover.
Christian Meier
@mkristian
Apr 09 2016 21:04
possible :)
Schalk W. Cronjé
@ysb33r
Apr 09 2016 23:07
A bit of my confusion atm is sinatra. I can get the app to run via jruby fro the command-line, but I cannto figure out how to get it to run in an embedded way