Plugin deprecated
Plugin deprecated, use @jnxplus/nx-gradle instead.
@jnxplus/nx-boot-gradle
This plugin adds Spring Boot and Gradle multi-project builds capabilities to Nx workspace.
Here is a quick overview of the plugin, to know more, please visit the documentation.
Supported versions
@jnxplus/nx-boot-gradle | Nx version range | Spring Boot |
---|
7.x.x | >=16.3.0 | 3.x.x |
6.x.x | >=16.0.0 && <16.3.0 | 3.x.x |
5.x.x | 15.x.x | 3.x.x |
Getting Started
0. Prerequisites
@jnxplus/nx-boot-gradle
requires a Java 17 or higher Runtime Environment and the current Long Term Support (LTS) version of node.js.
1. Install the plugin
In the Nx workspace root folder, run this command to install the plugin :
npm install --save-dev @jnxplus/nx-boot-gradle
2. Add Spring boot and Gradle wrapper support
The following command adds Spring boot and Gradle support (Gradle wrapper and config files) to the workspace. This only needs to be performed once per workspace.
nx generate @jnxplus/nx-boot-gradle:init
3. Usage
Action | Command |
---|
Generate an application | nx generate @jnxplus/nx-boot-gradle:application my-app-name |
Generate a library | nx generate @jnxplus/nx-boot-gradle:library my-lib-name |
Build a project | nx build my-project-name |
Serve an application | nx serve my-app-name |
Test a project | nx test my-project-name |
Lint a project | nx lint my-project-name |
Format a java project | nx format --projects my-project-name |
Format a kotlin project | nx ktformat my-project-name |
Run a custom task | nx run-task my-project-name --task="test" |
Visualize project's dependency graph | nx graph |
License
MIT © 2021-2023 Khalil LAGRIDA