require 'picsolve_docker_builder/scala' spec = Gem::Specification.find_by_name 'picsolve_docker_builder' load "#{spec.gem_dir}/lib/tasks/docker.rake" namespace :docker do desc 'prepare the build environment' task :prepare do @docker_builder ||= PicsolveDockerBuilder::Scala.new end end namespace :scala do namespace :lib do desc 'build & publish a scala library snapshot' task snapshot: :'docker:prepare' do @docker_builder.sbt_lib_snapshot end desc 'build & publish a scala library release' task release: :'docker:prepare' do @docker_builder.sbt_lib_release end end end