Nx provides powerful tooling for Java projects, supporting both Gradle and Maven build systems. Whether you're working with Spring Boot, Micronaut, Quarkus, or any other Java framework, Nx helps you build faster and more efficiently.
Build System Support
Section titled “Build System Support”Nx offers dedicated plugins for the two most popular Java build tools:
- @nx/gradle - For projects using Gradle
- @nx/maven - For projects using Maven
Both plugins provide the same core Nx features optimized for Java development.
What Nx Adds to Your Java Workspace
Section titled “What Nx Adds to Your Java Workspace”Nx enhances your Java development workflow with:
- Smart Caching - Cache build and test results to avoid redundant work
- Distributed Task Execution - Run tasks in parallel across multiple machines in CI
- Affected Commands - Only build and test what changed
- Interactive Graph - Visualize your project dependencies
- CI Optimization - Make your CI pipeline dramatically faster
Getting Started
Section titled “Getting Started”Choose your build tool to get started:
Requirements
Section titled “Requirements”Adding Nx to an Existing Java Project
Section titled “Adding Nx to an Existing Java Project”If you have an existing Gradle or Maven project, you can add Nx by running:
nx init
Nx will automatically detect your build tool and configure the appropriate plugin.