Update 2009/04/11: Assaf has a better way:
"There's a snapshot of 1.3.4 you can gem install from apache.org without all the excessive dev dependencies.
sudo gem source —add http://people.apache.org/~assaf/build...
sudo gem install buildr"
WFM.
To install Buildr from the source directory:
$ cd buildr
I got some errors doing that. This worked for me on Ubuntu 8.10
# cd /tmp
# wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
# tar xzf rubygems-1.3.1.tgz
# cd rubygems-1.3.1
# sudo ruby setup.rb
# sudo apt-get install python-setuptools
# sudo gem install echoe
# sudo gem install cucumber
# git clone git://github.com/buildr/buildr.git
# cd buildr
# rake setup install
# buildr --version
Buildr 1.3.4
This was to get to a post-1.3.3 Buildr to setup a Scala/Java project structure, as Buildr supports Scala compilation, plus I gather there's lots of good stuff on trunk. I still had to add require "buildr/scala" to the buildfile. As much as I prefer Buildr/Ivy for bootstrapping a project over Maven2, I wonder about needing a cross-language dependency chain (or gems) like this for doing Java/JVM stuff (such as having to install easy_install to get a gem set). Having never used it in a production/industrial setting it's hard to say. Otherwise, I do like Buildr.
2 Comments
Yeah, I've recently set up a buildr based build for a Scala project too. I have the same doubts, especially as the project requires installing packages not officially in Maven to your local .m2. We'll see if this proves to be too much of a burden if the project goes anywhere; in the meantime, I'm comforting myself by recalling how much I hate Ant and Maven.
There's a snapshot of 1.3.4 you can gem install from apache.org without all the excessive dev dependencies.
gem source —add http://people.apache.org/~assaf/build...
gem install buildr
The python dependency is Pygments, we use it for syntax highlighting when generating the Web site/PDF. It's not used by Buildr, but it is part of the toolset for developing Buildr -- documentation is part of the source code.
It wasn't necessary for rake install, so I fixed that in head.