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
- For details on compiling the java extensions using polyglot maven see this guide
Or for the impatient
mvn # builds basic.jar in target foldermvn javadoc:javadoc # javadocFor 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}' } })