blob: 2866390f08e8dd765e5d75539c345a7b97cea37d [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with this
# work for additional information regarding copyright ownership. The ASF
# licenses this file to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
unless defined?(Buildr::VERSION)
require File.join(File.dirname(__FILE__), 'lib', 'buildr', 'version.rb')
$LOADED_FEATURES << 'buildr/version.rb'
end
# Rakefile needs to create spec for all platforms (ruby and java), using the
# BUILDR_PLATFORM environment variable. In all other cases, we figure it out
# from RUBY_PLATFORM.
$platform = ENV['BUILDR_PLATFORM'] || RUBY_PLATFORM[/java/] || Gem::Platform::CURRENT
Gem::Specification.new do |spec|
spec.name = 'buildr'
spec.version = Buildr::VERSION.dup
spec.author = 'Apache Buildr'
spec.email = 'users@buildr.apache.org'
spec.homepage = 'http://buildr.apache.org/'
spec.summary = 'Build like you code'
spec.licenses = %w(Apache-2.0)
spec.description = <<-TEXT
Apache Buildr is a build system for Java-based applications, including support
for Scala, Groovy and a growing number of JVM languages and tools. We wanted
something that's simple and intuitive to use, so we only need to tell it what
to do, and it takes care of the rest. But also something we can easily extend
for those one-off tasks, with a language that's a joy to use.
TEXT
spec.platform = $platform
spec.files = Dir['{addon,bin,doc,etc,lib,rakelib,spec}/**/*', '*.{gemspec,buildfile}'] +
%w(LICENSE NOTICE CHANGELOG README.rdoc Rakefile _buildr _jbuildr)
spec.require_paths = 'lib', 'addon'
spec.bindir = 'bin' # Use these for applications.
spec.executable = 'buildr'
spec.extra_rdoc_files = 'README.rdoc', 'CHANGELOG', 'LICENSE', 'NOTICE'
spec.rdoc_options = '--title', 'Buildr', '--main', 'README.rdoc',
'--webcvs', 'https://github.com/apache/buildr'
spec.post_install_message = 'To get started run buildr --help'
spec.required_rubygems_version = '>= 1.8.6'
# Tested against these dependencies.
spec.add_dependency 'rake', '0.9.2.2'
spec.add_dependency 'builder', '3.2.2'
spec.add_dependency 'net-ssh', '3.1.1' if RUBY_VERSION >= '2.0.0'
spec.add_dependency 'net-ssh', '2.9.4' if RUBY_VERSION < '2.0.0'
spec.add_dependency 'net-sftp', '2.1.2'
# Required for sftp support under windows
spec.add_dependency 'jruby-pageant', '1.1.1' if $platform.to_s == 'java'
spec.add_dependency 'rubyzip', '1.2.0'
spec.add_dependency 'json_pure', '1.8.3'
spec.add_dependency 'rjb', '1.5.4' if ($platform.to_s == 'x86-mswin32' || $platform.to_s == 'ruby')
spec.add_dependency 'atoulme-Antwrap', '0.7.5'
spec.add_dependency 'diff-lcs', '1.2.5'
spec.add_dependency 'xml-simple', '1.1.5'
spec.add_dependency 'minitar', '0.5.4'
spec.add_dependency 'jruby-openssl', '~> 0.9.17' if $platform.to_s == 'java'
spec.add_dependency 'bundler'
spec.add_dependency 'win32console' '1.3.2' if $platform.to_s == 'x86-mswin32'
# Unable to get this consistently working under jruby on windows
unless $platform.to_s == 'java'
spec.add_development_dependency 'jekyll', '3.1.3'
spec.add_development_dependency 'RedCloth', '4.2.9'
spec.add_development_dependency 'jekylltask', '1.1.0'
spec.add_development_dependency 'pygments.rb', '0.6.3'
spec.add_development_dependency 'rdoc', '4.2.2'
spec.add_development_dependency 'jekyll-textile-converter', '0.1.0'
end
spec.add_development_dependency 'hoe', '3.15.1'
spec.add_development_dependency 'rspec-expectations', '2.14.3'
spec.add_development_dependency 'rspec-mocks', '2.14.3'
spec.add_development_dependency 'rspec-core', '2.14.5'
spec.add_development_dependency 'rspec', '2.14.1'
spec.add_development_dependency 'rspec-retry', '0.2.1'
spec.add_development_dependency 'test-unit', '3.2.1'
spec.add_development_dependency 'ci_reporter', '1.9.0'
# Ideally we would depend on psych when the platform has >= 1.9.2 support and jruby platform version > 1.6.6
#spec.add_development_dependency 'psych' if RUBY_VERSION >= '1.9.2'
spec.add_development_dependency 'pygmentize', '0.0.3'
spec.add_development_dependency 'saikuro_treemap', '0.2.0'
spec.add_development_dependency 'atoulme-Saikuro', '1.2.1'
# Used to manage whitespace of files within repository
spec.add_development_dependency 'zapwhite', '2.14.0'
end