Skip to content
Sharp

Build Tools · interview question

In a Gradle project, if a dependency is updated in a remote repository, how can you force your project to use this updated version?

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

Correct answer

C. Use the 'refreshVersions' plugin or clear the Gradle cache

Why

Gradle caches dependencies to avoid unnecessary downloads. To force an update, you can use the 'refreshVersions' plugin or clear the Gradle cache. This ensures that the project retrieves the latest version from the remote repository.

Test yourself on Build Tools

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

Start free test
All Build Tools questions →