@groovy.transform.CompileStatic class JRubyExtension extends org.ysb33r.grolifant5.api.core.runnable.CombinedProjectTaskExtensionBase<JRubyExtension>
Class providing the JRuby DSL extension which can be added to a task or a project.
| Modifiers | Name | Description |
|---|---|---|
static String |
JRUBY_COMPLETE_DEPENDENCY |
|
static String |
NAME |
| Type | Name and description |
|---|---|
String |
jrubyVersion |
| Constructor and description |
|---|
JRubyExtension
(Project p)Project extension constructor. |
JRubyExtension
(Project p, String name)Project extension constructor. |
JRubyExtension
(Task t, JRubyExtension projectExtension)Task extension constructor. |
JRubyExtension
(Task t, String name)Task extension constructor. |
JRubyExtension
(Task t, JRubyExtension projectExtension, String name)Task extension constructor. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Configuration |
getJrubyConfiguration()Returns a runConfiguration of the configured JRuby core dependencies. |
|
String |
getJrubyVersion()The default version of jruby that will be used. |
|
Provider<String> |
getJrubyVersionProvider()The default version of jruby that will be used. |
|
void |
setJrubyVersion(Object v)Set a new JRuby version to use. |
Project extension constructor.
p - Project to attach extension to.Project extension constructor.
p - Project to attach extension to.name - Used when creating a custom JRubyExtension in a plugin.Task extension constructor.
t - Task to attach extension to.projectExtension - Project-attached JRubyExtension. Can be null.Task extension constructor.
This variation is used by plugin authors to attach custom JRubyExtension instances to their own tasks or extensions when their is nor global project extension by design.
t - Task to attach extension to.name - Used when creating a custom JRubyExtension in a plugin.Task extension constructor.
This variation is used by plugin authors to attach custom JRubyExtension instances to their own tasks or extensions.
t - Task to attach extension to.projectExtension - Project-attached JRubyExtension. Can be null.name - Used when creating a custom JRubyExtension in a plugin.Returns a runConfiguration of the configured JRuby core dependencies.
The default version of jruby that will be used.
The default version of jruby that will be used.
Set a new JRuby version to use.
v - New version to be used. Can be of anything that be resolved by
org.ysb33r.grolifant5.api.core.StringTools#stringizeGroovy Documentation