Skip to content

Commit ac7db6f

Browse files
committed
Only initialise default jruby version in the project extension (#390)
1 parent 00522b2 commit ac7db6f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

base-plugin/src/main/groovy/com/github/jrubygradle/JRubyExec.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class JRubyExec extends JavaExec implements JRubyAwareTask, JRubyExecSpec {
189189
*/
190190
@Deprecated
191191
String getJrubyVersion() {
192-
deprecated('Use jruby.getJrubyVersion rather getJrubyVersion()')
192+
deprecated('Use jruby.getJrubyVersion() rather getJrubyVersion()')
193193
jruby.jrubyVersion
194194
}
195195

base-plugin/src/main/groovy/com/github/jrubygradle/JRubyPluginExtension.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class JRubyPluginExtension extends AbstractCombinedProjectTaskExtension {
6060
*/
6161
JRubyPluginExtension(Project p) {
6262
super(p)
63+
this.jrubyVersion = DEFAULT_JRUBY_VERSION
6364
}
6465

6566
/** Task extension constructor
@@ -322,7 +323,7 @@ class JRubyPluginExtension extends AbstractCombinedProjectTaskExtension {
322323
}
323324

324325
private static final String JRUBY_COMPLETE_DEPENDENCY = 'org.jruby:jruby-complete'
325-
private Object jrubyVersion = DEFAULT_JRUBY_VERSION
326+
private Object jrubyVersion
326327

327328
private Provider<Configuration> gemConfiguration
328329
private String gemPrepareTaskName

0 commit comments

Comments
 (0)