Some checks failed
Generate embeddings / cache-and-install (20.19.0) (push) Has been cancelled
publish / stable - armv7-unknown-linux-gnueabihf - node@22.16.0 (push) Has been cancelled
publish / stable - aarch64-unknown-linux-musl - node@22.16.0 (push) Has been cancelled
publish / stable - x86_64-unknown-linux-musl - node@22.16.0 (push) Has been cancelled
publish / Resolve Required Data (push) Has been cancelled
publish / stable - aarch64-pc-windows-msvc - node@22.16.0 (push) Has been cancelled
publish / stable - x86_64-apple-darwin - node@22.16.0 (push) Has been cancelled
publish / stable - x86_64-pc-windows-msvc - node@22.16.0 (push) Has been cancelled
publish / stable - aarch64-unknown-linux-gnu - node@22.16.0 (push) Has been cancelled
publish / stable - x86_64-unknown-linux-gnu - node@22.16.0 (push) Has been cancelled
publish / stable - aarch64-apple-darwin - node@22.16.0 (push) Has been cancelled
publish / Build FreeBSD (push) Has been cancelled
publish / Publish (push) Has been cancelled
publish / (PR Release Failure Only) Create comment for failed PR release (push) Has been cancelled
Issue Statistics / Report status (push) Has been cancelled
dev.nx.gradle.project-graph
This gradle plugin contains
Installation
Kotlin build.gradle.kts
plugins {
id("dev.nx.gradle.project-graph") version("+")
}
Groovy build.gradle
plugins {
id "dev.nx.gradle.project-graph" version "+"
}
Usage
./gradlew nxProjectGraph
In terminal, it should output something like:
> Task :nxProjectGraph
< your workspace >/build/nx/add-nx-to-gradle.json
To pass in a hash parameter:
./gradlew nxProjectGraph -Phash=12345
To control whether Nx generates individual targets for each Gradle task (atomized targets) or a single target for the entire Gradle project, set the atomized boolean in your build.gradle or build.gradle.kts file.
To disable atomized targets:
nxProjectReport {
atomized = false
}
It generates a json file to be consumed by nx:
{
"nodes": {
"app": {
"targets": {}
}
},
"dependencies": [],
"externalNodes": {}
}