Module: BuildrGemjar
- Includes:
- Buildr::Extension
- Included in:
- Buildr::Project
- Defined in:
- lib/buildr-gemjar.rb,
lib/buildr-gemjar/version.rb
Defined Under Namespace
Classes: GemjarTask
Constant Summary collapse
- VERSION =
'1.1.0'
Class Attribute Summary collapse
-
.jruby_complete_jar ⇒ Object
Returns the value of attribute jruby_complete_jar.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.jruby_complete_jar ⇒ Object
Returns the value of attribute jruby_complete_jar.
246 247 248 |
# File 'lib/buildr-gemjar.rb', line 246 def jruby_complete_jar @jruby_complete_jar end |
Class Method Details
.jruby_artifact ⇒ Object
241 242 243 |
# File 'lib/buildr-gemjar.rb', line 241 def self.jruby_artifact "org.jruby:jruby-complete:jar:#{jruby_version}" end |
.jruby_version ⇒ Object
235 236 237 238 239 |
# File 'lib/buildr-gemjar.rb', line 235 def self.jruby_version version = Buildr.settings.build['jruby'] || (JRUBY_VERSION if Kernel.const_defined?(:JRUBY_VERSION)) || "1.5.6" end |
Instance Method Details
#package_as_gemjar(filename) ⇒ Object
227 228 229 |
# File 'lib/buildr-gemjar.rb', line 227 def package_as_gemjar(filename) GemjarTask.define_task(filename) end |
#package_as_gemjar_spec(spec) ⇒ Object
231 232 233 |
# File 'lib/buildr-gemjar.rb', line 231 def package_as_gemjar_spec(spec) spec.merge(:type => 'jar') end |