Opscraft
CI/CD & build tooling

Build tools & artifact repositories

New9 lessons · 31 min · 3 tests ·

Build tools and artifact repositories sit between source code and the container image. Senior DevOps interviews ask how Maven and Gradle actually resolve and build, why builds are slow or non-reproducible, how versions and SNAPSHOTs work, how Nexus/Artifactory/CodeArtifact proxy and host artifacts, and how you'd design an artifact flow that is fast, auditable and secure. This topic also covers the other ecosystems you'll meet (npm, pip, Go) at the level a platform engineer needs.

Stage 2 · Core tools

Know these first

After this topic you can

  • Explain how Maven, Gradle and npm builds work
  • Version and publish artifacts to a repository
  • Make builds fast, reproducible and cache-friendly

Lessons

  1. 1Why build tools and artifact management matter 3 min read
    • The flow from commit to deployable
    • Build once, promote everywhere
  2. 2Maven in depth 6 min read
    • Coordinates and the POM
    • Lifecycle, phases and goals
    • Dependency scopes
    • Transitive dependencies and conflicts
    • Multi-module builds
    • SNAPSHOT vs release
    • settings.xml and mirrors
  3. 3Gradle in depth 4 min read
    • The model
    • Dependency configurations
    • Why Gradle is fast
    • The Gradle wrapper
    • Publishing
    • Maven vs Gradle
  4. 4Artifact repositories: Nexus, Artifactory, CodeArtifact 3 min read
    • Repository types
    • Products
    • Retention and cleanup
    • High availability and backup
  5. 5Versioning, reproducibility and supply chain 3 min read
    • Semantic versioning
    • Reproducible builds
    • Supply chain security
  6. 6Other ecosystems a platform engineer meets 3 min read
  7. 7Builds inside containers and CI 3 min read
    • Multi-stage Dockerfile for a Java service
    • Choices in CI
  8. 8Troubleshooting builds 3 min read
  9. 9Interview questions and model answers 3 min read
    • "Explain the Maven lifecycle. What's the difference between install and deploy?"
    • "SNAPSHOT vs release versions?"
    • "How does Maven resolve version conflicts, and how do you fix one?"
    • "Why is Gradle faster than Maven?"
    • "Why put Nexus or Artifactory in front of Maven Central?"
    • "How do you make builds reproducible?"
    • "How would you use CodeArtifact with GitHub Actions?"