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. And of course, we wanted it to be fast, reliable and have outstanding dependency management.
Why Buildr Rocks
If you think about it, the question isn’t “Why use Buildr?”, it’s really “Why use anything else?” The advantages afforded by Buildr are so substantial, I really can’t see myself going with any other tool, at least not when I have a choice.
That’s still the strongest sell: it builds everything I need, and as I’ve needed more, I just got things working without a lot of fuss.
We used to rely on Ant, with a fairly extensive set of scripts. It worked but was expensive to maintain. The biggest mistake afterward was to migrate to Maven2. I could write pages of rants explaining all the problems we ran into and we still ended up with thousands of lines of XML.
The positive side effect for me as a java user is that I learn a little ruby, and that’s easy but lots of fun… :-)
I’ve cleaned up & migrated the Vamosa build process from 768 lines of Ant build.xml to 28 lines of Buildr.
What You Get
- A simple way to specify projects, and build large projects out of smaller sub-projects.
- Pre-canned tasks that require the least amount of configuration, keeping the build script DRY and simple.
- Compiling, copying and filtering resources, JUnit/TestNG test cases, APT source code generation, Javadoc and more.
- A dependency mechanism that only builds what has changed since the last release.
- A drop-in replacement for Maven 2.0, Buildr uses the same file layout, artifact specifications, local and remote repositories.
- All your Ant tasks are belong to us! Anything you can do with Ant, you can do with Buildr.
- No overhead for building “plugins” or configuration. Just write new tasks or functions.
- Buildr is Ruby all the way down. No one-off task is too demanding when you write code using variables, functions and objects.
- Simple way to upgrade to new versions.
- Did we mention fast?
Highlights from Buildr 1.4.19 (2014-07-06)
- Fixed: BUILDR-700 – Ensure SNAPSHOT artifacts, constructed using the
‘http://example.com/…’) construct will correctly download the
artifacts from configured URL.
- Fixed: BUILDR-700 – Fix bug where buildr was truncating SNAPSHOT files
that had not changed since last update check and HTTP was returning
“HTTP Not Modified” status.
- Fixed: Fix bug introduced in 1.4.18 version of custom_pom addon where
poms are created for artifacts that have a classifier.
Highlights from Buildr 1.4.18 (2014-06-24)
- Fixed: BUILDR-699 – Update the custom_pom addon to avoid failure when
used with zip packages.
- Fixed: BUILDR-694 – “buildr upload” fails: wrong number of arguments in
progress bar read() in Ruby 2.1.0. Submitted By Mark Reibert.
- Change: Remove support for uploads to RubyForge.org with gem dependencies
as the site no longer exists.
- Change: BUILDR-664 – Update Checkstyle addon so that extra_dependencies is
the project dependencies by default. Move the checkstyle dependencies
to the start of the classpath to avoid problems running checkstyle.
Submitted by Dieter Vrancken.
- Added: Extend Intellij IDEA support to allow creation of glassfish,
java and ruby scrip configurations.
- Change: Include additional rules in default pmd rule set:
- Change: Upgrade the version of PMD in use to 5.1.1 and add additional
default rule sets ‘finalizers’ and ‘braces’.
- Change: Supply a default xsl file for generating the jdepend report.
- Fixed: Fix the naming of css_lint addon file so it is made available
as an addon.
This is a partial list — see the CHANGELOG for full details.
Credits & Notices
Community member quotes from a thread on Stack Overflow.