Sha256: ffd49c3580b048c73e1813b8696571d04d71ab9c19d44fce3bf60a5134800280

Contents?: true

Size: 933 Bytes

Versions: 15

Compression:

Stored size: 933 Bytes

Contents

require 'rake_factory'
require 'ruby_leiningen'
require 'ruby_leiningen/plugins'

require_relative '../mixins/directoried'

module RakeLeiningen
  module Tasks
    class Build < RakeFactory::Task
      include Mixins::Directoried

      default_name :build
      default_description "Build standalone uberjar."
      default_prerequisites RakeFactory::DynamicValue.new { |t|
        t.ensure_task_name ? [t.ensure_task_name] : []
      }

      parameter :main_namespace
      parameter :profile
      parameter :environment

      parameter :directory, default: '.'

      parameter :ensure_task_name, default: 'leiningen:ensure'

      action do |t|
        puts "Building standalone uberjar..."

        in_directory(t.directory) do
          RubyLeiningen.uberjar(
              main_namespace: t.main_namespace,
              profile: t.profile,
              environment: t.environment)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rake_leiningen-0.33.0.pre.2 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.33.0.pre.1 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.32.0 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.31.0.pre.4 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.31.0.pre.3 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.31.0.pre.2 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.31.0.pre.1 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.30.0 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.29.0.pre.1 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.28.0 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.27.0.pre.1 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.26.0 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.25.0.pre.1 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.24.0 lib/rake_leiningen/tasks/build.rb
rake_leiningen-0.23.0.pre.2 lib/rake_leiningen/tasks/build.rb