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

13th
Apr 2015
R. Tyler Croy
@rtyler
Apr 13 2015 16:52
@ysb33r could I convince you to help me with #29? I'm not sure where to start on implementing this
but it's pretty clear that I need this functionality now :/
Schalk W. Cronjé
@ysb33r
Apr 13 2015 18:24
lemme have a look now and then ask some questiosn
What is this kind of file called?
R. Tyler Croy
@rtyler
Apr 13 2015 18:31
I'm calling it a
RubyStub
Schalk W. Cronjé
@ysb33r
Apr 13 2015 18:34
Here is my idea for a test
    def "Generate gradle.rb"() {
        given: "A set of gems"

        when: "The load path file is generated "

        then: "Expect to to be in the configured destinationDir"

        and: "be called gradle.rb"

        and: "The GEM_HOME to include gemInstallDir"

        and: "The jarcache folder to be the configured jarCacheFolder"
    }
Schalk W. Cronjé
@ysb33r
Apr 13 2015 18:40
So will the task type then be called GenerateGradleRb or GenerateRubyStub ?
Schalk W. Cronjé
@ysb33r
Apr 13 2015 18:54
I’ll do the groundwork and push something basic to my repo, which you can then take further. How does that sound?
R. Tyler Croy
@rtyler
Apr 13 2015 18:58
I think where I'm having trouble is examples of task types generating files
if you want to throw something together I can take it from there I
you know the gradle best practices a bit more than I do :P
Schalk W. Cronjé
@ysb33r
Apr 13 2015 18:59
I have just spoken about this kind of case at the conference - It’s actually in my slides.
R. Tyler Croy
@rtyler
Apr 13 2015 19:00
I know, I was looking at them while sketching out some basic ideas earlier :P
Schalk W. Cronjé
@ysb33r
Apr 13 2015 19:00
I can probably do the same kind of trick with the Copy task
Schalk W. Cronjé
@ysb33r
Apr 13 2015 19:08
BTW you should build plugins with gradle 2.0 wfor best compatibility
I think one of the last updates pushed it to 2.3
R. Tyler Croy
@rtyler
Apr 13 2015 19:12
feel free to change it back, I forgot that we use gradleApi()
Schalk W. Cronjé
@ysb33r
Apr 13 2015 19:25
I can probably get something done by tomorrow night.
Already have the basic done, but might not get around to finishing everything tonight
R. Tyler Croy
@rtyler
Apr 13 2015 19:27
can you push it up? I've got some time to finish this up today at $WORK
rtyler @rtyler goes to get lunch first
Code compiles, but test fails (obviously)
If you can get somethign working for your purpose I can clean it up again
R. Tyler Croy
@rtyler
Apr 13 2015 20:17
okie doke, I'll take a whack at it between these next few
  • meetings
Schalk W. Cronjé
@ysb33r
Apr 13 2015 21:20
Changes committed
Schalk W. Cronjé
@ysb33r
Apr 13 2015 21:42
Did the code make any sense though
R. Tyler Croy
@rtyler
Apr 13 2015 22:26
sorry, just got back to my desk, looking