Build Tools · interview question
Why should local development and CI both use the same wrapper command such as ./gradlew test?
Multiple choiceMediumchapter-10-curatedpremiumbuild-toolscontinuous-integration
Answer and explanation
Correct answer
A. It makes the verified build path consistent across environments
Why
Using one entrypoint reduces mismatch between what developers run locally and what CI enforces. That consistency is part of making the build trustworthy rather than a personal IDE ritual.
Test yourself on Build Tools
A free test with instant, explained results. No account needed.
More Build Tools questions
- In a Maven project, where do you declare a dependency for a new library you want to use?
- Which Maven command would you use to ensure that the project is cleaned and rebuilt, including tests?
- When using Maven, which phase is responsible for verifying the quality of the code by running integration tests?
- In a Maven project, how are dependencies typically fetched?
- How does Maven resolve dependencies that are not present in the local repository?
- Which of the following is a primary benefit of using Gradle over Ant for building Java projects?