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

2nd
May 2017
amiracam
@amiracam
May 02 2017 11:15
any incompatibilities with Intellij IDEA 2017.x using Gradle 4 ? its not working
Blane Dabney
@raelik
May 02 2017 15:41
@amiracam I'm not sure if anyone has tested the plugin with Gradle 4 yet. I'm pretty sure it works with Gradle 3. You may want to open an issue on Github and include a gist of the error you're getting.
@amiracam Are you sure it's using Gradle 4? They don't have an actual release for 4 yet, just a milestone.
amiracam
@amiracam
May 02 2017 15:50
sorry :), 3.4
I'm having issues with 3.4 but within IDEA
Is there anything special / pattern one does in order to setup a JRuby project in IDEA that relies on the gradle plugin for dependency management
Blane Dabney
@raelik
May 02 2017 18:03
@amiracam First, you need to decide which of the plugins you're actually going to use: the jar plugin, the war plugin, or just the base plugin (this is only really appropriate if you're only running Ruby through gradle).
though I believe the documentation on http://jruby-gradle.org/ is more up-to-date.
@amiracam besides the basics of adding the plugin as a buildscript dependency, applying the plugin to the gradle file, and then defining the appropriate jrubyJar or jrubyWar configurations, there's no "one correct way" to use it.
Blane Dabney
@raelik
May 02 2017 18:08
it's flexible enough to be applicable in most deployment scenarios.
I use it to create an artifact jar with just jruby, my rubygem and jar dependencies, and run jruby directly using that artifact jar against the ruby files that are deployed directly on the filesystem.
I gather that most people include a "from" line in their jrubyJar config to include their ruby files in the jar, and also add a custom entrypoint to create a self-contained executable jar with all their code in it.