Questions tagged [build-script]
204 questions
82
votes
12 answers
Could not find com.android.tools.build:gradle:7.3.3. error found in build.gradle file
Could not find com.android.tools.build:gradle:7.3.3.
Searched in the following locations:
- https://plugins.gradle.org/m2/com/android/tools/build/gradle/7.3.3/gradle-7.3.3.pom
-…

Zaheer Ansari
- 819
- 1
- 3
- 9
74
votes
10 answers
Automatically setting jobs (-j) flag for a multicore machine?
I have a Makefile on a machine that has a ton of cores in it, but I always seem to forget to write -jX when compiling my project and it takes way longer than it should.
Is there some way I can set the -j flag through an environment variable or some…

KarateSnowMachine
- 1,490
- 2
- 13
- 17
26
votes
2 answers
Typescript command line compilation without NodeJS
I was looking over Typescript and was a bit confused about how you could build your js files from the ts files via the command line.
It implies in the documentation that you can do it easily through nodeJS, which would be great if I wanted a…

Grofit
- 17,693
- 24
- 96
- 176
18
votes
3 answers
Gradle Script Kotlin and dependencyManagement
I am trying to port Spring Cloud Stream app build script to Kotlin. So far, so good, except the dependency management block. It's difficult to find anything in the net. Samples don't cover that topic, too.
How do I convert following block to…

wst
- 4,040
- 4
- 41
- 59
18
votes
4 answers
Gitlab-CI: gitlab ci trigger build only for merge request
Im using gitlab 8.1.4. And using gitlab-ci thats comes built-in. By default, gitlab-ci is triggering build for every push. How can make it trigger only during creation of merge request?
Thanks in advance

Kaviraj Kanagaraj
- 431
- 4
- 7
14
votes
5 answers
How to Add Xcode Bot Integration Number Into Build Script
I'm creating an iPad application with a Settings.bundle file. I'm writing build scripts to display the application version number and the xcode bot integration number (not the bundle build number). I've searched the web and couldn't find any…

iDev
- 503
- 5
- 25
12
votes
1 answer
How do I configure the SVN HTTP proxy from the command line?
I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image).
As part of this process, certain dependencies are retrieved from public SVN repositories.
The build machines sit…

William Payne
- 3,055
- 3
- 23
- 25
11
votes
2 answers
Real Hierarchical Builds with SCons?
So I've read the questions on here about hierarchical builds like: Creating a Hierarchical Build with SCons
I want to do real hierarchical construction of two standalone repos that both use scons that I set up as sub-repos using mercurial. Below is…

Dave Huseby
- 168
- 1
- 5
10
votes
2 answers
Ignore files in build script - Xcode
I have added few dummy responses as json files to test my application when the web services are down. While i generate the framework(iOS) i need to discard all the *.json files. Because having those files might get me problems in pen testing.
I am…

vivin
- 992
- 1
- 8
- 24
9
votes
2 answers
How to create a Simple Build Script for Visual Studio from the Command Line?
I have a lot of Visual Studio Project Solutions in multiple directories (all with the extension .sln) and I want to write a simple batch script that will automatically build all solutions listed in the batch file.
I am able to manually build a…

matrixanomaly
- 6,627
- 2
- 35
- 58
8
votes
1 answer
QMake - how to add a post-build step after EVERY build
Having a bit of trouble - I've added the following lines to qmake in order to get it to copy files into the app bundle on Mac.
mac {
QMAKE_POST_LINK = $$PWD/package_mac.sh
}
The .sh file runs sometimes, and seems to work (at the moment it just…

Javawag
- 1,547
- 2
- 16
- 23
7
votes
1 answer
How should Poetry scripts used in the build process be stored in the project?
Let's say that you're using Poetry to manage a Python PyPI package. As it stands, your project has a Makefile that contains procedures for managing the installation, unit testing, and linting of your project. However, since this goes against the…

Diapolo10
- 286
- 8
- 25
7
votes
2 answers
How do I generate a text file during compile time and include its content in the output?
I'm trying to do almost the same as How to create a static string at compile time.
build.rs
use std::{env};
use std::path::Path;
use std::io::{Write, BufWriter};
use std::fs::File;
fn main() {
let out_dir = env::var("OUT_DIR").unwrap();
let…

Harindaka
- 4,658
- 8
- 43
- 62
7
votes
1 answer
npm copyfiles not correct target path
I'm using the npm package "copyfiles" in my buildscript.
But the target directory is not that what I expected.
"copy-template": "copyfiles \"./src/**/*.html\" \"dist\"",
My base directory structure is:
src/pages/.../htmlfiles
What I want…

fishme
- 93
- 1
- 1
- 8
7
votes
2 answers
Syntax error when adding SSH key in GitLab CI
Reference: https://gitlab.ida.liu.se/help/ci/ssh_keys/README.md
The following script has problems. Even though I changed the last symbol from ` to ' , the question is how to fix the error as shown below:
$ ssh-add <(echo "$SSH_PRIVATE_KEY") /bin/sh:…

tony.0919
- 1,145
- 5
- 16
- 27