Questions tagged [build-automation]

Build automation is the act of scripting or automating tasks like compiling, packaging, running tests, deployment etc.

Build automation is the act of scripting or automating a wide variety of tasks that software developers do in their day-to-day activities including things like:

  • Compiling computer source code into binary code
  • Packaging binary code
  • Running tests
  • Deployment to production systems
  • Creating documentation and/or release notes

Advantages

  • Improve product quality
  • Accelerate the compile and link processing
  • Eliminate redundant tasks
  • Minimize "bad builds"
  • Eliminate dependencies on key personnel
  • Have history of builds and releases in order to investigate issues
  • Save time and money - because of the reasons listed above.

See also , and .

1857 questions
2870
votes
33 answers

How can I create an executable/runnable JAR with dependencies using Maven?

I want to package my project in a single executable JAR for distribution. How can I make a Maven project package all dependency JARs into my output JAR?
soemirno
  • 29,244
  • 3
  • 19
  • 14
1438
votes
27 answers

What is Gradle in Android Studio?

Gradle is a bit confusing to me, and also for any new Android developer. Can anyone explain what Gradle in Android Studio is and what its purpose is? Why is it included in Android Studio?
233
votes
10 answers

Controlling Maven final name of jar artifact

I'm trying to define a property in our super pom which will be used by all child projects as the destination of the generated artifact. For this I was thinking about using project/build/finalName yet this does not seem work, even for simple…
Maxim Veksler
  • 29,272
  • 38
  • 131
  • 151
209
votes
12 answers

Have Grunt generate index.html for different setups

I'm trying to use Grunt as a build tool for my webapp. I want to have at least two setups: I. Development setup - load scripts from separate files, without concatenation, so my index.html would look something like: …
Dmitry Pashkevich
  • 13,431
  • 9
  • 55
  • 73
208
votes
4 answers

Maven: how to do parallel builds?

When you build with maven on a multicore / multi-CPU machine it would often be possible to build different subprojects in parallel. Is there a way to do this with maven? Is there a plugin for this / whatever?
Dr. Hans-Peter Störr
  • 25,298
  • 30
  • 102
  • 139
156
votes
6 answers

Ant task to run an Ant target only if a file exists?

Is there an ANT Task that would execute a block only if a given file exists? I have the problem that I have a generic ant script that should do some special processing but only if a specific configuration file is present.
Mario Ortegón
  • 18,670
  • 17
  • 71
  • 81
148
votes
18 answers

Maven: Non-resolvable parent POM

I have my maven project setup as 1 shell projects and 4 children modules. When I try to build the shell. I get: [INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR] [ERROR] The project module1:1.0_A0…
Will
  • 8,246
  • 16
  • 60
  • 92
144
votes
9 answers

How and why do I set up a C# build machine?

I'm working with a small (4 person) development team on a C# project. I've proposed setting up a build machine which will do nightly builds and tests of the project, because I understand that this is a Good Thing. Trouble is, we don't have a whole…
mmr
  • 14,781
  • 29
  • 95
  • 145
118
votes
6 answers

Build NuGet Package automatically including referenced dependencies

I want to run a local/internal NuGet repository. I think I've figured out how to "reuse" existing NuGet packages by including them in a dummy project using NuGet and scanning the package file to grab my locally-cached .nupkg files, but... How do…
drzaus
  • 24,171
  • 16
  • 142
  • 201
117
votes
11 answers

CruiseControl [.Net] vs TeamCity for continuous integration?

I would like to ask you which automated build environment you consider better, based on practical experience. I'm planning to do some .Net and some Java development, so I would like to have a tool that supports both these platforms. I've been…
115
votes
32 answers

Automatically remove Subversion unversioned files

Does anybody know a way to recursively remove all files in a working copy that are not under version control? (I need this to get more reliable results in my automatic build VMware.)
Stefan Schultze
  • 9,240
  • 6
  • 35
  • 42
110
votes
3 answers

Xcode variables

In Xcode, I know that you can get variables such as PROJECT_DIR to use in some situations, such as a run script build phase. I am wondering if it's possible to get the build type (i.e., Release or Debug). Any ideas?
Allyn
  • 20,271
  • 16
  • 57
  • 68
102
votes
12 answers

Promising alternatives to make?

I've been using make and makefiles for many many years, and although the concept is sound, the implementation has something to be desired. Has anyone found any good alternatives to make that don't overcomplicate the problem?
mike511
  • 1,685
  • 4
  • 16
  • 18
102
votes
11 answers

SVN checkout ignore folder

Can I ignore a folder on svn checkout? I need to ignore DOCs folder on checkout at my build server. edit: Ignore externals isn't an option. I have some externals that I need.
Zote
  • 5,343
  • 5
  • 41
  • 43
100
votes
8 answers

Ant: How to execute a command for each file in directory?

I want to execute a command from an Ant buildfile, for each file in a directory. I am looking for a platform-independent solution. How do I do this? Sure, I could write a script in some scripting language, but this would add further dependencies to…
ivan_ivanovich_ivanoff
  • 19,113
  • 27
  • 81
  • 100
1
2 3
99 100