lib/maven/ruby/maven.rb in ruby-maven-3.3.8 vs lib/maven/ruby/maven.rb in ruby-maven-3.3.9
- old
+ new
@@ -91,12 +91,16 @@
else
@verbose
end
end
- def inherit_jruby_version
- if defined? JRUBY_VERSION
- self['jruby.version'] = JRUBY_VERSION
+ def inherit_jruby_version( version = nil )
+ if version == nil
+ if defined? JRUBY_VERSION
+ self['jruby.version'] = JRUBY_VERSION
+ end
+ elsif version
+ self['jruby.version'] = version
end
end
def exec(*args)
mvn_args = (args + options_array)