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
1
vote
1 answer

Rake FileList—clean Directory, exclude subdirectory

I am quiet new to ruby, rake, buildr and of course to FileUtils and FileList. I have a directory structure like this: +root |-dir1 |+dir2 ||-dir not to delete ||-dir3 |-dir4 … After the clean, everything that should be left over…
philipp
  • 15,947
  • 15
  • 61
  • 106
1
vote
2 answers

Buildr―debugging the buildfile

I am quite new to Buildr and I am trying to get it up and running on my projects. Is there a way to debug and step through the actual script inside the »buildfile« while executed by buildr? If yes, which IDE supports this and can this be set…
philipp
  • 15,947
  • 15
  • 61
  • 106
1
vote
1 answer

buildr and ranged maven transitive dependencies

Hoping some of you are already using buildr in your workflow. My question is, how do you resolve ranged maven dependencies that are transitive? Let me give you an example: a-group:an-id:jar:a-version say this depends on another dependency that is…
James Dolnewiy
  • 103
  • 1
  • 4
1
vote
2 answers

Jenkins / Buildr running the eclipse compiler for 'javac' without changing system java

I'm instrumenting my java builds through jenkins, and the warnings plug-in has an option for scanning classes with the eclipse compiler, but I can't make it produce anything. I looked through the buildr code and it looks like it uses a literal…
liam
  • 3,830
  • 6
  • 32
  • 31
1
vote
1 answer

Buildr : Sonar Logging Exception

I've got sonar configured in my buildfile, but I can not seem to resolve this logging error: [sonar] Apache Ant(TM) version 1.8.3 compiled on February 26 2012 [sonar] Sonar Ant Task version: 1.3 [sonar] Loaded from:…
liam
  • 3,830
  • 6
  • 32
  • 31
1
vote
1 answer

why do we need complexity in dependency management

I am not sure if the title of the question is correct, but please read the question. I have been working on C/C++ for most part of my work life (close to 11 years). we only had C/C++ source/header files and all dependencies were managed by…
weima
  • 4,653
  • 6
  • 34
  • 55
1
vote
1 answer

Buildr - Exclude source files when compiling

Is there a way to exclude certain packages or source files when compiling in buildr? There isn't an exclude on the compile task as it looks in the src directory. We are building for multiple environments and for one of the environments we need to…
Ross
  • 3,008
  • 1
  • 22
  • 27
1
vote
0 answers

Using Apache Buildr to build JRuby project?

The question came up before, but wasn't actually answered then. How do you set up buildr to build JRuby projects?
Cubic
  • 14,902
  • 5
  • 47
  • 92
1
vote
1 answer

How can buildr correctly deal with unicode pom files?

I've been experimenting with buildr in lieu of maven on a project. When I request the transient dependencies for a given package, I get this error: $ buildr --trace=all ... ** Invoke…
timbod
  • 791
  • 5
  • 16
1
vote
1 answer

buildr upload doesn't create maven-metadata.xml

I'm trying out buildr on two projects - one has a dependency on the other. buildr upload seems to work ok on project1 but when project2 tries to build it looks for project1/0.0.1-SNAPSHOT/maven-metadata.xml in my repo, which doesn't exist. Should I…
edoloughlin
  • 5,821
  • 4
  • 32
  • 61
1
vote
2 answers

Is there a recipe to use buildr to upload to maven central via ossrh?

Using maven, one can push artifacts to central via ossrh; this requires GPG signatures, source, and javadocs in addition to the usual maven-deploy-plugin of the core jar. Is there a recipe to arrange all of this with buildr?
bmargulies
  • 97,814
  • 39
  • 186
  • 310
1
vote
1 answer

I want to exclude cobertura from instrumenting code if test=true

I want to exclude cobertura from instrumenting code if test=true. Right now I have all my required statments at the top: require 'buildr/java/cobertura' require 'buildr/scala' Then each time the build runs I get this: Instrumenting classes with…
Mick Knutson
  • 2,297
  • 3
  • 25
  • 48
1
vote
1 answer

How do I refer to a JAR built in the same Buildr buildfile?

I am currently using IntelliJ IDEA to build my project, but I want to move away from it to break the dependency on this particular IDE. Buildr looks like a nice option since 1) it is simple, and 2) I already know Ruby. My IDEA project, which is for…
Dan Barowy
  • 2,270
  • 24
  • 35
1
vote
2 answers

Why do my tests fail to run when migrating from maven2 to buildr?

I have a straightforward maven2 java project (JMS relaying system). After we released the first version, we found that we spent more time configuring maven than actually coding. For the next release we wanted to clean up the build process and…
user130532
1
vote
2 answers

Apache Buildr - extract artifact to project root

I started using Apache builder for a project and I am surprised how little code I need to build my project. But after the first successes, a problem arose: I have some required text files stored in a jar file which can be downloaded from a…
jcklie
  • 4,054
  • 3
  • 24
  • 42