# encoding: utf-8

$: << File.expand_path('../lib', __FILE__)

require 'jara/version'


Gem::Specification.new do |s|
  s.name          = 'jara'
  s.version       = Jara::VERSION.dup
  s.license       = 'BSD-3-Clause'
  s.authors       = ['Burt Platform Team']
  s.email         = ['theo@burtcorp.com']
  s.homepage      = 'http://github.com/burtcorp/jara'
  s.summary       = %q{Builds and publishes JAR artifacts}
  s.description   = %q{Build self-contained JAR artifacts and publish them to S3}

  s.files         = Dir['lib/**/*.rb', 'README.md', 'LICENSE.txt', '.yardopts']
  s.require_paths = %w(lib)

  s.platform = 'java'
  s.required_ruby_version = '>= 1.9.3'

  s.add_dependency 'puck'
  s.add_dependency 'aws-sdk-core'
end

# encoding: utf-8

$: << File.expand_path('../lib', __FILE__)

require 'jara/version'


Gem::Specification.new do |s|
  s.name          = 'jara'
  s.version       = Jara::VERSION.dup
  s.license       = 'BSD-3-Clause'
  s.authors       = ['Burt Platform Team']
  s.email         = ['theo@burtcorp.com']
  s.homepage      = 'http://github.com/burtcorp/jara'
  s.summary       = %q{Builds and publishes JAR artifacts}
  s.description   = %q{Build self-contained JAR artifacts and publish them to S3}

  s.files         = Dir['lib/**/*.rb', 'README.md', 'LICENSE.txt', '.yardopts']
  s.require_paths = %w(lib)

  s.required_ruby_version = '>= 1.9.3'

  if defined? JRUBY_VERSION
    s.platform = 'java'
    s.add_runtime_dependency 'puck'
  else
    s.platform = Gem::Platform::RUBY
  end

  s.add_runtime_dependency 'aws-sdk-core'
end

Make it possible to run in MRI
Make it possible to run in MRI

Only depend on Puck when we're running in JRuby, in MRI we'll default to creating tarballs