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

20283 questions
186
votes
13 answers

Docker and securing passwords

I've been experimenting with Docker recently on building some services to play around with and one thing that keeps nagging me has been putting passwords in a Dockerfile. I'm a developer so storing passwords in source feels like a punch in the face.…
anthonator
  • 4,115
  • 6
  • 32
  • 46
178
votes
31 answers

Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details

Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details build:gradle(Module:app) buildscript { repositories { maven { url 'https://jitpack.io' url…
Ankur_009
  • 2,841
  • 3
  • 23
  • 44
178
votes
27 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
  • 4,779
  • 5
  • 32
  • 46
177
votes
16 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…
codaR0y
  • 3,583
  • 3
  • 12
  • 12
177
votes
13 answers

Xcode: Build Failed, but no error messages

Using Xcode 4.5.1. Our project has been building fine for the last three months, but suddenly, when I try to build, it says "Build failed", but does not show any errors on the triangle exclamation mark tab, nor does it give a reason when it pops up…
Jason
  • 11,310
  • 13
  • 63
  • 115
176
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,136
  • 9
  • 36
  • 66
173
votes
16 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,035
  • 2
  • 15
  • 8
167
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…
165
votes
14 answers

Could not find com.android.tools.build:gradle:3.0.0-alpha1 in circle ci

I update the gradle plugin to the latest : com.android.tools.build:gradle:3.0.0-alpha1 and this error occured : export TERM="dumb" if [ -e ./gradlew ]; then ./gradlew test;else gradle test;fi FAILURE: Build failed with an exception. What went…
Mohamed ALOUANE
  • 4,731
  • 3
  • 27
  • 52
160
votes
17 answers

node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected error after installation of Angular 6

I got an error of node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected. after the installation of Angular 6. Check the error: ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';'…
SSP
  • 1,717
  • 2
  • 5
  • 7
160
votes
11 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
  • 3,763
  • 6
  • 20
  • 24
155
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
  • 1,665
  • 2
  • 11
  • 6
147
votes
5 answers

`npm build` doesn't run the script named "build" in package.json

For a new module I'm trying to use npm build without gulp / Grunt / other specialised build tools. "scripts": { "build": "node build.js" }, My build.js is simply console.log('Hello') However, running npm build Simply exits without printing…
mikemaccana
  • 81,787
  • 73
  • 317
  • 396
147
votes
3 answers

Adding a build configuration in Xcode

I'd like to add a new build configuration in Xcode 5, "QA", to the other three we currently have (Debug, Distribution, Release). However, when I click "Editor > Add Configuration", everything is grayed out. I'm not very familiar with Xcode in the…
Daniel Miller
  • 2,101
  • 4
  • 15
  • 19
146
votes
8 answers

Building vs. Compiling (Java)

Thinking that the answer to this is pretty obvious but here it goes: When I am working on a small project for school (in java) I compile it. On my coop we are using ant to build our project. I think that compiling is a subset of building. Is…
sixtyfootersdude
  • 23,394
  • 39
  • 132
  • 200