Interview Prep/CI/CD/Build Tools, Nexus, SonarQube and Test Failures

`Gradle build fails: Could not resolve all files for configuration ':compileClasspath'`.

IntermediateTroubleshootingBuild Tools, Nexus, SonarQube and Test Failures
Answer

Likely causes → Repository not declared, offline mirror lacks the artifact, or credentials missing.

Diagnose → ./gradlew dependencies --configuration compileClasspath --info.

Fix → Add the repository (Nexus URL with credentials from env), refresh dependencies.

Prevent → Lock dependencies with --write-locks.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Build Tools, Nexus, SonarQube and Test Failures