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

15th
Aug 2015
Schalk W. Cronjé
@ysb33r
Aug 15 2015 06:31
:+1:
R. Tyler Croy
@rtyler
Aug 15 2015 18:07
I actually cut a v1.0.3 last night too
because I noticed that I left a commit in that I didn't want to be released :P
Christian Meier
@mkristian
Aug 15 2015 18:14
I played with the jem repo today and got POC for jruby adding packed gem files on the fly. BUT I do have problem with a dependency of this project. compile "org.jboss.shrinkwrap:shrinkwrap-bom:1.2.2" compile "org.jboss.shrinkwrap:shrinkwrap-depchain:1.2.2" both are only pom dependency.
when gradle produces the pom.xml for this project it keeps them as default type which is jar.
R. Tyler Croy
@rtyler
Aug 15 2015 18:15
what's missing? I pulled it into the jruby-gradle plugins without issue
Christian Meier
@mkristian
Aug 15 2015 18:15
and then jruby can not use them via jar-dependencies.
the pom.xml generated by gradle for this project is corrupt. 1.2.2+ version was easy to fix
R. Tyler Croy
@rtyler
Aug 15 2015 18:16
OH, I see what you mean
send a PR my way and we'll cut a release!
jem is auto-released to bintray when ia tag is created
Christian Meier
@mkristian
Aug 15 2015 18:17
I saw this. but I do not know how to tell gradle org.jboss.shrinkwrap:shrinkwrap-depchain:1.2.2 is just pom and has no jars and use <type>pom</type> for the generated pom.xml
I send PR any ways and it is more POC to discuss further then to be included.
rtyler @rtyler nods
R. Tyler Croy
@rtyler
Aug 15 2015 18:21
the speed is pretty fast
Christian Meier
@mkristian
Aug 15 2015 18:34
nice.
R. Tyler Croy
@rtyler
Aug 15 2015 18:35
I think I'm going to add an incubating feature in 1.1 which allows the use of jem
I want to get some real-world usage of it with more complex gems
@mkristian in a POM version specifier, isn't "1.0.2+" valid?
@mkristian does jruby-gradle/jem#7 in JRuby? O_O
Christian Meier
@mkristian
Aug 15 2015 18:41
no the "+" is a gradle feature and we had this before. the wrong type I do not know how to fix it - see my second comment on the PR
R. Tyler Croy
@rtyler
Aug 15 2015 18:41
@mkristian does the pom format not account for version ranges?
Christian Meier
@mkristian
Aug 15 2015 18:42
yes [1.2.2,1.3.0) would be maven equivalent
but the "+" notation is not known by maven
gradle could fix this when it generates the pom.xml - call it gradle bug I would
R. Tyler Croy
@rtyler
Aug 15 2015 18:43
@mkristian why the need for a jem gem (how confusing!)
Christian Meier
@mkristian
Aug 15 2015 18:44
to get the whole thing easily into jruby.
R. Tyler Croy
@rtyler
Aug 15 2015 18:44
but why not just implement it as a java class that way it just needs to be on the classpath?
Christian Meier
@mkristian
Aug 15 2015 18:45
to play around it is much easier like this
R. Tyler Croy
@rtyler
Aug 15 2015 18:45
but there's no technical requirement?
Christian Meier
@mkristian
Aug 15 2015 18:47
not that I am aware of. but it needs ruby scripting since it uses rubygems. first I had the gem/lib/jems.rb inside the jar file which is no problem. maybe a fat jar helps for playing around
but collecting a classpath with 10 jars from some resolver was too much for me to do
rtyler @rtyler nods
R. Tyler Croy
@rtyler
Aug 15 2015 18:48
this code can go into Java in the future so long as the API stays the same anyways
Christian Meier
@mkristian
Aug 15 2015 18:49
rather embed a ruby script though - just much easier to maintain and debug and everything. but inside the jar is no problem
have to go now . . .
R. Tyler Croy
@rtyler
Aug 15 2015 18:50
okay, will leave some comments on the PR and merge