Introduction presentation to Buildr as a build tool for Java/Groovy/Scala projects written in Ruby demonstrates how JVM languages projects could be built and automated using Buildr and Ruby.
2. this is me
● SA at EPAM Systems
● primary skill is Java
● hands-on-coding with Ruby, Groovy and
some Scala
● passionate about agile, clean code
practices and devops movement
22. tests for build
define ’some project’ do
project.version = ‘1.11’
project.group = ’company.com’
compile.with # a lot of dependencies
test.compile.with # a lot of dependencies
check package(:jar).entry(’META-INF/MANIFEST’), ’Should have
license’ do
it.should contain(/Copyright (C) 2013/)
end
end
28. require 'buildr'
module YourExtension
include Extension
first_time do
# Define task not specific to any project.
end
before_define do |project|
# Define task for this particular project.
end
after_define do |project|
# Do a job
end
end
end
class Buildr::Project
include YourExtension
end