Skip to content

Create Gradle (and Maven) plugins to easily manage Ruby dependencies for polyglot projects #3918

@sschuberth

Description

@sschuberth

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.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    embeddingUses TruffleRuby embedded, i.e., started from Java (so not the standalone)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions