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

5th
May 2017
André Rouél
@before
May 05 2017 09:49
As a workaround, we translate dependencies that point to a git repository by using the bundler from a jruby-gradle task.
amiracam
@amiracam
May 05 2017 10:33
@raelik nice ! thanks, all the gems and now dependent gems show up under the Idea External Libraries listing, however, there's still a disconnect with IDEA in that the rb files are not after doing the Gradle refresh via the Idea Gradle plugin not recognized as Ruby. Again rectified by having to manually go to Project Structure and re-applying the particular Ruby i.e. in this case RVM for jruby-9.1.2.0, Do you not have a notion of where the Jruby source set is ? i.e. for Java, Groovy and Kotlin its simply src/main/java or groovy or kotlin, these folders are automatically recognized by Idea as source folders and thus marked accordingly, even if I were to manually mark the ruby folder as a source folder the sheer act of refreshing via Idea Gradle plugin will un-marked the ruby folder whereas the groovy and java folder remain unscathed , there's a disconnect somewhere perhaps the notion of Gradle source sets, ideally I should not even have to setup the jruby folder within idea as a Jruby module , the gradle integration should do that
André Rouél
@before
May 05 2017 13:12
It looks like that jruby-gradle assumes that the referenced project dependencies are built. This seems to me a wrong assumption.
André Rouél
@before
May 05 2017 13:42
For example, I have a jruby-based subproject which depends on a java-project and I set in the dependencies section dependencies { jrubyExec project(':my-java-project') } then during a JrubyExec task execution it assumes the result of :my-java-project to be existent instead of building it on demand.
Blane Dabney
@raelik
May 05 2017 15:54
@amiracam Yeah, now you're getting outside my wheelhouse. I don't know enough about how IntelliJ works with Gradle to be able to speak to any of that.
Blane Dabney
@raelik
May 05 2017 16:00
@amiracam You MAY need to use the jar plugin instead of just the base plugin, and use this: jrubyJar { from 'src' }
that tells the plugin to include 'src' in the source files.