-
Notifications
You must be signed in to change notification settings - Fork 194
Description
Similar to like the org.graalvm.python
Gradle plugin for GraalPython allows, it would be great if there was a Gradle plugin that allows to easily setup and configure TruffleRuby projects. In particular, it should be possible to easily and in a Gradle-native way declare direct dependencies on Ruby Gems, and have them and their transtive dependencies be resolved and retrieved as part of the build process.
I'm just copying over the relevant text from the above-mentioned issue here:
I'm inspired by how the JRuby Gradle plugin does it (note that this is still Groovy instead of Kotlin DSL syntax):
dependencies {
/* Using the built-in `jrubyJar` configuration to describe the
* dependencies our jrubyJar task will need, so the gem is properly
* included in the resulting .jar file
*/
jrubyJar "rubygems:colorize:0.7.7+"
jrubyJar 'org.slf4j:slf4j-simple:1.7.12'
}
Following this approach consistently across all Gradle plugins for GraalVM languages would make a great Gradle user experience IMO, and maybe all Gradle plugins could even share some common code (to create those language-specific configurations etc.).