Class providing the jruby{} DSL extension to the Gradle build script
Constructor and description |
---|
JRubyPluginExtension
(org.gradle.api.Project p) |
Type | Name and description |
---|---|
void |
defaultVersion(java.lang.String newDefaultVersion) Set the default version of JRuby to be used by all JRuby/Gradle code |
java.io.File |
getGemInstallDir() Resolves the currently configured GEM installation directory. |
java.io.File |
getJarInstallDir() Resolves the currently configured Jars installation directory. |
void |
registerDefaultVersionCallback(groovy.lang.Closure callback) Register a callback to be invoked when defaultVersion is updated |
void |
registerExecVersionCallback(groovy.lang.Closure callback) Register a callback to be invoked when execVersion is updated |
void |
setDefaultVersion(java.lang.String newDefaultVersion) |
void |
setExecVersion(java.lang.String newVersion) Change the version of jruby for jrubyexec and JRubyExec |
java.lang.Object |
setGemInstallDir(java.lang.Object dir) Sets the gem installation directory. |
java.lang.Object |
setJarInstallDir(java.lang.Object dir) Sets the jar installation directory. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Set this to false if you do not want the default set of repositories to be loaded.
The default version of jruby that will be used
The version of jruby used by jrubyexec as well as default version of jruby that will be used by JRubyExec
Set the default version of JRuby to be used by all JRuby/Gradle code
Resolves the currently configured GEM installation directory.
Resolves the currently configured Jars installation directory.
Register a callback to be invoked when defaultVersion is updated NOTE: This is primarily meant for JRuby/Gradle plugin developers
Register a callback to be invoked when execVersion is updated This is primarily meant for JRuby/Gradle plugin developers. You can expect that this callback will be executed if defaultVersion is changed but execVersion is not changed.
Change the version of jruby for jrubyexec and JRubyExec
Sets the gem installation directory. Anything that can be passed to project.file
can be
passed here as well.
dir
- Directory (String, GString, File, Closure etc.) Sets the jar installation directory. Anything that can be passed to project.file
can be
passed here as well.
dir
- Directory (String, GString, File, Closure etc.)Groovy Documentation