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

14th
Dec 2014
R. Tyler Croy
@rtyler
Dec 14 2014 04:48
@ysb33r when you get a chance please take a look at my more recent changes to the base plugin
it's about ready to release IMO, and some of the fixes would be useful this upcoming wee k:)
Schalk W. Cronjé
@ysb33r
Dec 14 2014 16:02
i’ll have a look now
R. Tyler Croy
@rtyler
Dec 14 2014 17:11
thanks
Schalk W. Cronjé
@ysb33r
Dec 14 2014 17:14
My head is a bit flat, but trying my best.
R. Tyler Croy
@rtyler
Dec 14 2014 17:16
hah
late night? or just tired from the weekend
Schalk W. Cronjé
@ysb33r
Dec 14 2014 17:16
tired after #GGX
R. Tyler Croy
@rtyler
Dec 14 2014 17:17
ah right
so I finally received my new Thinkpad X1, a new computer with Gradle is MUCH more enjoyable
the JVM start time doesn't make me sad anymore :D
Schalk W. Cronjé
@ysb33r
Dec 14 2014 17:19
hah
Spent most of Friday in the hackathon
so cannot face too much code atm
R. Tyler Croy
@rtyler
Dec 14 2014 17:20
that's okay by me, after these few changes I doubt I'll be spending much time in jruby-gradle base today
I didn't have nearly as busy of a week as you did, so I can relax with some patchsets fortunately
I do have more good news to report, migrating more projects over to jruby-gradle this past week
getting some more good beta testing from real world users :D
rtyler @rtyler starts printing t-shirts that say "The Revolution Will be Gradleized"
R. Tyler Croy
@rtyler
Dec 14 2014 18:48
@ysb33r addressed your comments and did find a bug (using System.env instead of self.environment)
Schalk W. Cronjé
@ysb33r
Dec 14 2014 18:52
excellent
R. Tyler Croy
@rtyler
Dec 14 2014 18:55
I need to learn more about this integration test stuff you wrote so I can stop over-relying on blick :/
Schalk W. Cronjé
@ysb33r
Dec 14 2014 20:36
I like to expand on that too. I think one can write quite a bit on the topic on getting it right in gradle
Anyhow on that gemWorkDir issue. I have been thinking. Removing the @OutputDirectory is not the correct solution, neither is leaving it there the correct solution atm as well.
So best is to remove it for now, and we can add it back later once I’ve figured out what the correct solution is supposed to be
I think in your case you want spec task to be run whenever you need it to, but you maybe have to figure out what it means for the spec task to be up to date.
R. Tyler Croy
@rtyler
Dec 14 2014 20:39
the spec task should probably never be up to date TBH
@ysb33r can you set a directory as "input" and have gradle just watch changes?
Schalk W. Cronjé
@ysb33r
Dec 14 2014 20:44
yes, you can. If it something intended as part of your plugin you would use @InputDirectory. If it is something that is part of you specific build script then it is done via inputs method.
R. Tyler Croy
@rtyler
Dec 14 2014 20:44
interesting
I was thinking about building a "batteries included" plugin that includes the spec task, and some other common tasks
Schalk W. Cronjé
@ysb33r
Dec 14 2014 20:45
so if you spec is dependent on say files in your tests directory you can do inputs.dir file(‘tests’) in the configuration closure for the task.
if you then really want to re-run spec after absolutely nothing has changed, you run gradle with the —rerun-tasks switch.
Schalk W. Cronjé
@ysb33r
Dec 14 2014 20:53

I was thinking about building a "batteries included" plugin that includes the spec task, and some other common tasks

Try it out - tell people it’s incubating. It can serve as a good learning platform to figure out how to move the jruby integration forward. As I’ve said before - I would like to see if it is possible to build a complete Ruby project in grade (without having to resort to rake on the command-line).

Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:05
BTW I am going to try a quick prototype to #14. I’ll create the PR and you can try it out.
Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:12
ALso check this out http://www.gdub.rocks. I actually just copied the gw bash script into my ~/bin folder.
R. Tyler Croy
@rtyler
Dec 14 2014 21:25
interesting, fortunately I've not yet had those problems
Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:32
I have that code ready
Have fun
Also made two tests not to run when offline. I need to refactor those correctly.
Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:37
BTW do we still need warbler inside Jar?
R. Tyler Croy
@rtyler
Dec 14 2014 21:43
the jar plugin?
no
Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:44
OK I’ll raise a issue to refactor it to be removed.
rtyler @rtyler nods
R. Tyler Croy
@rtyler
Dec 14 2014 21:45
the bootstrap code you added makes it totally unnecessary
Schalk W. Cronjé
@ysb33r
Dec 14 2014 21:54
ALso di you ever check this out http://www.gdub.rocks ? I actually just copied the gw bash script into my ~/bin folder.
Schalk W. Cronjé
@ysb33r
Dec 14 2014 22:04
Looks like I’ve solved #24 completly too