JRuby9 Next Generation Maven Mojo

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

Ruby Languages
GroupId

GroupId

org.torquebox.mojo
ArtifactId

ArtifactId

jruby9
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

pom
Description

Description

JRuby9 Next Generation Maven Mojo
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

https://github.com/torquebox/jruby9-maven-plugins
Source Code Management

Source Code Management

https://github.com/torquebox/jruby9-maven-plugins

Download jruby9

Filename Size
jruby9-0.3.1.pom 3 KB
Browse

How to add to project

<!-- https://jarcasting.com/artifacts/org.torquebox.mojo/jruby9/ -->
<dependency>
    <groupId>org.torquebox.mojo</groupId>
    <artifactId>jruby9</artifactId>
    <version>0.3.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/org.torquebox.mojo/jruby9/
implementation 'org.torquebox.mojo:jruby9:0.3.1'
// https://jarcasting.com/artifacts/org.torquebox.mojo/jruby9/
implementation ("org.torquebox.mojo:jruby9:0.3.1")
'org.torquebox.mojo:jruby9:pom:0.3.1'
<dependency org="org.torquebox.mojo" name="jruby9" rev="0.3.1">
  <artifact name="jruby9" type="pom" />
</dependency>
@Grapes(
@Grab(group='org.torquebox.mojo', module='jruby9', version='0.3.1')
)
libraryDependencies += "org.torquebox.mojo" % "jruby9" % "0.3.1"
[org.torquebox.mojo/jruby9 "0.3.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • jruby9-common
  • jruby9-exec-maven-plugin
  • jruby9-jar-maven-plugin
  • jruby9-war-maven-plugin
  • jruby9-extensions

jruby maven plugins and extensions

the plugins and extensions are modeled after jruby-gradle and uses the old jruby maven plugins under the hood but it needs jruby-1.7.19 or newer (including jruby-9.0.0.0 serie).

even though the plugin depends on the old jruby-maven-plugins it has a different version.

general command line switches

to see the java/jruby command the plugin is using (for example with the verify goal)

mvn verify -Djruby.verbose

to quickly pick another jruby version use

mvn verify -Djruby.version=1.7.20

jruby9-exec-maven-plugin

it install the gems and jars from ALL scopes and the plugin sections and can execute ruby. execution can be

  • inline ruby: -e 'puts JRUBY_VERSION'
  • via command installed via a gem: -S rake -T
  • a ruby script: my.rb

see more at jruby9-exec-maven-plugin

jruby9-jar-maven-plugin

it packs all gems and jars from the compile/runtime as well the declared resources into runnable jar. execution will with packed jar

  • inline ruby: java -jar my.jar -e 'puts JRUBY_VERSION'
  • via command installed via a gem: java -jar my.jar -S rake -T
  • a ruby script: java -jar my.jar my.rb

see more at jruby9-jar-maven-plugin

jruby9-jar-extension

it produces the same jar as with jruby9-jar-plugin but the configuration is more compact using a maven extension.

see more at jruby9-extensions

meta-fu

create an issue if something feels not right

issues/new

otherwise enjoy :)

org.torquebox.mojo

The TorqueBox Project

Versions

Version
0.3.1
0.3.0