Skip to content
Sharp

Build Tools · interview question

In a Gradle build script, where should you declare a dependency to ensure it is available to the entire project?

Multiple choiceEasychapter-10-curatedpremiumbuild-toolsdependency-management
Choose one answer
Answer and explanation

Correct answer

A. In the dependencies block

Why

In a Gradle build script, dependencies are declared in the dependencies block. This makes them available for the entire project.

Test yourself on Build Tools

A free test with instant, explained results. No account needed.

Start free test
All Build Tools questions →