Questions tagged [buildr]

A build tool for Java, Scala, Groovy, and other JVM-based projects.

Apache Buildr in its own words:

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.

Buildr is based on the ruby build tool rake, can use ant tasks, and retrieves dependencies from maven repositories.

137 questions
0
votes
3 answers

Buildr - put test resources on classpath

I'm trying to use buildr to build a Java project of mine. I have a bunch of concordion tests and HTML specifications, located like so: src/test/java/spec/x/y/z/SomethingTest.java src/test/resources/spec/x/y/z/Something.html buildr finds the actual…
user130076
0
votes
1 answer

buildr build aborted - unable to download from repo

Buildr build is aborting because failed to download from maven repo. Given the very basic buildr file (mostly generated): repositories.remote << "http://www.ibiblio.org/maven2/" define "demo" do project.version = "1" project.group = "dirwatch" …
takacsot
  • 1,727
  • 2
  • 19
  • 30
0
votes
3 answers

Error when trying to install Buildr-as3 on Windows 7

I'm currently looking into automating a flex build so that we can get it running on a CI server. After a bit of poking around on the Internet and asking around, Buildr as3 looks like a promising option, but I cannot get it to install correctly. …
Mark Simpson
  • 23,245
  • 2
  • 44
  • 44
0
votes
1 answer

Buildr workspace dependency

I have two projects, project A and project B. Project A is a library project, so it has its own buildfile. I can build jar and everything works fine. In project B i want to use project A as a workspace dependency in Eclipse. I don't wan't to…
Ludevik
  • 6,954
  • 1
  • 41
  • 59
0
votes
1 answer

Buildr: adding a path to the generated eclipse/idea files

I have a legacy java project that we have been moving to buildr/artifactory from ant/jars in svn. The primary code is in the default (src/main/java) folder, but we have a few external source paths, for various tests that we can't move into the…
liam
  • 3,830
  • 6
  • 32
  • 31
0
votes
1 answer

How to explode a war file in buildr

I'm new to buildr, so I might be missing something obvious. According to this page, it should be fairly simple: Download explode.rb At the top of your buildfile, add the following: require 'explode.rb' Define explode task on your web…
itsadok
  • 28,822
  • 30
  • 126
  • 171
0
votes
2 answers

Sending files made by `jar xf` to another directory

I have a JAR with a bunch of configs. I'd like to send them to the correct directory without cd'ing there. Something like jar xf config.jar --MAGIC-PARAM PATH/TO/DIRECTORY Is there such a thing? If it helps, this will be called by a Buildr…
Drew
  • 15,158
  • 17
  • 68
  • 77
0
votes
1 answer

Buildr - exclude directory from resources

In Buildr you can exclude all files in a directory by doing the following: resources.exclude 'scratch/*' Is it possible to exclude the directory as well? The Buildr documentation mentions: The filter always excludes the CVS and .svn directories,…
Ross
  • 3,008
  • 1
  • 22
  • 27
0
votes
1 answer

Use Local Maven Repository

How can I use jars that buildr loads by default into the local maven repo, rather than creating new (and repetitive) artifact tasks/dependencies? For example, if were creating a scala or groovy application buildr would automatically download the…
dakin
  • 79
  • 1
  • 4
0
votes
1 answer

Where to put wrapper scripts in Buildr?

I'm developing a set of command line tools in Scala, using Apache Buildr as my build system. I'd like to include a wrapper script for each tool. Something like this: #!/bin/sh scala myclass $@ These scripts should be installed alongside my jar when…
Jay Conrod
  • 28,943
  • 19
  • 98
  • 110
0
votes
3 answers

How to package html files into jar/war with buildr?

I'm working on an embedded Jetty + Wicket app and I'm using buildr. Right now, Buildr isn't including the HTML files (which are in the main source folder, alongside my *.java files) in the jar. How can I tell buildr to include them in the…
Dave
  • 1,567
  • 4
  • 13
  • 23
0
votes
1 answer

buildr use optional transitive artifact dependency

How can Apache Buildr be told to follow dependencies with true in the pom? See the related question at Trouble getting Hibernate Core and Hibernate Annotations using Apache Ivy (but it's also Maven2 related.) Thank you.
ron
  • 9,262
  • 4
  • 40
  • 73
0
votes
1 answer

Buildr won't generate a POM in projects with multiple packages

I have a Java project that uses Apache Buildr as its build tool. It installs a WAR and two ZIP archives to a Maven repository. However, with Buildr 1.5.6, it seems that when the instructions to build the ZIP archives are added to the buildfile…
ATG
  • 1,679
  • 14
  • 25
0
votes
1 answer

How to use JOGL 1.x as a dependency with buildr?

How can I declare JOGL 1.x as a dependency of my Java project when using Buildr?
argentpepper
  • 4,202
  • 3
  • 33
  • 45
0
votes
1 answer

How to not download new version of jar with buildr?

For example if I have transitive('xxx:xxx:jar:1.4-SNAPSHOT') in artifacts.rb I don't want that when I run buildr to recive new version of 1.4-SNAPSHOT. For buildr 1.4.0 no new version was download when I run buildr, but with buildr 1.4.4 it download…
telebog
  • 1,706
  • 5
  • 25
  • 34