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
9
votes
3 answers

How to fix Vite build / parser error "Unexpected token" in third party dependencies?

I'm trying to create a production build of my React application with Vite. When I run the npm run dev command, the app will start and seems to work as it should, but during the build I always get these kind of parser errors by some third party…
pingu
  • 91
  • 1
  • 1
  • 2
9
votes
1 answer

Azure build error: "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"

When building Flutter app in azure devOps, I receive this error: Build file 'D:\a\1\s\android\app\build.gradle' line: 24 * What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. …
M Karimi
  • 1,991
  • 1
  • 17
  • 34
9
votes
2 answers

Android: Problems building apk with Ant Release

I have no problems building my app in eclipse but once I try to do it via ant, it does not build. I've used "android update project -p ." to generate the build build.xml and proguard.cfg file. I tried "ant compile" and it builds fine as well. The…
Dave
  • 91
  • 1
9
votes
3 answers

What is a useful Branch Versioning Strategy?

We have moved to a product versioning approach which will mark/increment builds according to the following format: [Major].[Minor].[Build].[Revision/Patch], and a production release will essentially be an increment of Major or Minor (depending on…
RobS
  • 9,382
  • 3
  • 35
  • 63
9
votes
1 answer

How can I stop an Xcode Archive build if my git working copy is dirty?

I do not want an Archive build to succeed unless my working directory is clean. Therefore, I want to add a "Run Script" build phase (or something similar) to my Xcode project such that: IF I am performing an Archive build... AND there are…
benzado
  • 82,288
  • 22
  • 110
  • 138
9
votes
3 answers

Compiling Boost.Test tests faster

I am using xcode (gcc) to compile my boost test suite and it takes too long. The tests are minimal dummy tests, yet it takes several seconds (about 20) to compile them: #include "boost/test/included/unit_test.hpp" BOOST_AUTO_TEST_CASE(dummy) { …
clemens
  • 422
  • 2
  • 12
9
votes
2 answers

Compile ATL project with only Windows SDK 7.1

I have a project which needs to be compiled. It is compiled on our build server which I have only installed Windows SDK 7.1 on. I would like to not have to install an actual Visual Studio on this machine, but am getting an error "cannot find…
Mladen Mihajlovic
  • 6,095
  • 7
  • 40
  • 55
9
votes
4 answers

Connect Github to secured Jenkins via HTTP Post-Commit Hook

I have set up Jenkins with the Github plugin on my test server. I have secured Jenkins by only allowing authenticated users (anonymous users don't have any rights) and secure connections. Unfortunately the post-commit hook offered by Github doesn't…
stdll
  • 687
  • 4
  • 21
9
votes
4 answers

webpack options has an unknown property 'hotOnly'. Invalid options object. Dev Server has been initialized using an options object

I am running the command npx webpack-dev-server --mode development in my react application and getting the preceding error. [webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API…
Sibeesh Venu
  • 18,755
  • 12
  • 103
  • 140
9
votes
2 answers

Android - different behaviour in release signed build?

Having some really strange "bugs" with my Android application at the minute, it I run it from Eclipse it runs fine, pretty much perfect. It contains a login screen that I can access and get to my main screen fine when running through Eclipse. When I…
Donal Rafferty
  • 19,707
  • 39
  • 114
  • 191
9
votes
1 answer

github actions: Push several times, but I want the build to be done only for the last push

name: master builder on: push: branches: - master ~~~ I have a workflow like this. So, Whenever I push to the master branch, the actions run. But I want the build to work only on the last push. For example, master branch - feature1…
Tuuks
  • 95
  • 1
  • 4
9
votes
3 answers

Documentation for aapt element in Ant script

I'm working on some Ant scripts for an Android build system and have come across an element to call aapt. I have seen lots of examples with exec executable="${aapt}" but the ones that come out of the main_rules.xml file use a different format …
Snowwire
  • 530
  • 1
  • 6
  • 14
9
votes
2 answers

Next.js is not building page as SSG when it should

I am trying to understand why Next.js is building some of my pages as SSG and some of them as Static, when they all are using getStaticProps. Let's take my 404 page that uses getStaticProps to fetch data from prismic with graphql. It is being…
Damian Kociszewski
  • 283
  • 1
  • 5
  • 20
9
votes
1 answer

How do you access Xcode environment (and build) variables from an external script?

I am writing a script to automate my iOS building. It will be run outside of Xcode, either via Terminal or from build automating software. Is there any way to have access to Xcode environment variables in my script, so I don't have to try and derive…
zekel
  • 9,227
  • 10
  • 65
  • 96
9
votes
5 answers

Is there any Java equivalent of PHP's http_build_query function?

I have a Map with my data and want to build a query string with it, just like I would with http_build_query on PHP. I'm not sure if this code is the best implementation of it or if I'm forgetting something? public String toQueryString(Map
falmp
  • 39,347
  • 3
  • 21
  • 18