What is Gradle and how does it differ from Maven?
IntermediateConceptBuild Tools and Artifact Repositories
Answer
Gradle uses a Groovy or Kotlin DSL (build.gradle(.kts)) and a task graph instead of Maven's fixed lifecycle, giving more flexibility. Its big wins are incremental builds, the build cache (local and remote), the Gradle daemon and parallel execution, making large builds much faster. Maven is more convention-driven and simpler to read. For CI use ./gradlew build --no-daemon --build-cache and enable the gradle/actions/setup-gradle cache in GitHub Actions.
More on Build Tools and Artifact Repositories
What is Maven and what is its build lifecycle?BeginnerWhat is the difference between `mvn package`, `install` and `deploy`?BeginnerHow do Maven dependency scopes and transitive dependencies work?IntermediateWhat is `settings.xml` in Maven and how do CI builds use it?IntermediateWhat is the Maven Wrapper and why use it?BeginnerHow do you cache dependencies and speed up Maven builds in CI?Intermediate