GitHub

JRuby Extensions basic concepts

This project aims to demo small and easy concepts around jruby extensions, this concepts will be listed as

Creating Classes and Modules

  • For java method signatures, and @JRubyMethod annotations see the wiki
  • Loading the extensions
  • ...

Building the extension using polyglot maven

Or for the impatient

mvn # builds basic.jar in target folder
mvn javadoc:javadoc # javadoc

For jdk-11+ replace

source: '${maven.compiler.source}',
target: '${maven.compiler.target}'

with

release: '${maven.compiler.release}'

You may also wish to replace insertion of a manual Manifest, with an automatic module viz:

plugin(:jar, '3.2.0',
  'archive' => {
    'manifestEntries' => {
      'Automatic-Module-Name' => '${my.module}'
    }
    })

Read the original on github.com ↗