Questions tagged [build]

The process of converting source code files into standalone software artifact(s) that can be run on a computer

In the field of computer software, the term software build refers either to the process of converting source code files into standalone software artifact(s) that can be run on a computer, or the result of doing so.

Useful Links

23199 questions
231
votes
4 answers

Golang tests in sub-directory

I want to create a package in Go with tests and examples for the package as subdirectories to keep the workspace cleaner. Is this possible and if so how? All the documentation always puts the testing code in the same place as the other code, is…
The Graceful Penguin
  • 2,424
  • 2
  • 14
  • 7
224
votes
2 answers

Gradle buildscript dependencies

What is the difference between declaring repositories in the buildscript section of the gradle build or in the root level of the build. buildscript { repositories { mavenCentral(); } } versus repositories { mavenCentral(); }
Jeff Storey
  • 56,312
  • 72
  • 233
  • 406
214
votes
24 answers

External VS2013 build error "error MSB4019: The imported project was not found"

I am building a project through the command line and not inside Visual Studio 2013. Note, I had upgraded my project from Visual Studio 2012 to 2013. The project builds fine inside the IDE. Also, I completely uninstalled VS2012 first, rebooted, and…
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
17 answers

Multi-project test dependencies with gradle

I have a multi-project configuration and I want to use gradle. My projects are like this: Project A -> src/main/java -> src/test/java Project B -> src/main/java (depends on src/main/java on Project A) -> src/test/java (depends on…
mathd
  • 2,415
  • 2
  • 17
  • 8
207
votes
30 answers

iOS - Build fails with CocoaPods cannot find header files

I have an iOS project using CocoaPods. Everything was working smoothly until another developer started to work on the same project. He made some changes (only to code as far as I know) and made a new branch in the repo. I have checked out his branch…
Filip Majernik
  • 7,700
  • 13
  • 45
  • 53
199
votes
14 answers

Displaying build times in Visual Studio

Our build server is taking too long to build one of our C++ projects. It uses Visual Studio 2008, running devenv.com MyApp.sln /Build -- see devenv command-line switches (although that's for a newer version of VS). Is there a way to get devenv.com…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
196
votes
6 answers

Recommended way to stop a Gradle build

How can I stop a Gradle build after detecting a problem? I can use an assert, throw an exception, do a System.exit (bad idea), or use a dedicated function in Gradle (but I could not find one). What is the best way for Gradle (and why?).
Kartoch
  • 7,610
  • 9
  • 40
  • 68
195
votes
31 answers

Gradle does not find tools.jar

I am using javadoc doclets with gradle, so I need to use the package tools.jar, which is in the lib folder from the jdk (1.6.0_26 in my case). The point is that gradle does not take it automatically, so I was adding that tools package to my libs…
raspayu
  • 5,089
  • 5
  • 37
  • 50
194
votes
27 answers

NoClassDefFoundError - Eclipse and Android

I'm having a problem trying to run an Android app which, up until adding a second external library to its build path, was working fine. Since having added the scoreninja jar, I now get a NoClassDefFoundError when I try to run the app. Here's the…
Tom R
  • 5,991
  • 9
  • 35
  • 41
192
votes
7 answers

Prevent unit tests but allow integration tests in Maven

I've a Maven build in which I use the SureFire plugin to run some unit tests, and the FailSafe plugin to run some integration tests. I would like a way to run just the FailSafe plugin's tests. It's not a good solution for me to add different…
190
votes
14 answers

Node package ( Grunt ) installed but not available

I'm trying to build a github jquery-ui library using grunt, but after running npm install I still can't run the command according to the readme file. It just gives No command 'grunt' found: james@ubuntu:~/Documents/projects/ad2/lib/jquery-ui$ grunt…
AJP
  • 26,547
  • 23
  • 88
  • 127
186
votes
17 answers

How to set versionName in APK filename using gradle?

I'm trying to set a specific version number in the gradle auto-generated APK filename. Now gradle generates myapp-release.apk but I want it to look something like myapp-release-1.0.apk. I have tried renaming options that seems messy. Is there a…
Coy
  • 3,703
  • 3
  • 14
  • 13
185
votes
16 answers

Go build: "Cannot find package" (even though GOPATH is set)

Even though I have GOPATH properly set, I still can't get "go build" or "go run" to find my own packages. What am I doing wrong? $ echo $GOROOT /usr/local/go $ echo $GOPATH /home/mitchell/go $ cat ~/main.go package main import "foobar" func main()…
MitchellSalad
  • 4,171
  • 8
  • 23
  • 24
184
votes
13 answers

Module not found: Error: Can't resolve 'core-js/es6'

I've got a problem with my build process in relation to my React app. I always get the following error: Module not found: Error: Can't resolve 'core-js/es6' if I use this in a polyfill.js: import 'core-js/es6'; That is my package.json: { …
Gutelaunetyp
  • 2,144
  • 4
  • 15
  • 40