java
3 guardrails, all at version v1.
| Guardrail | Default severity | What it checks |
|---|---|---|
java/toolchain-declared | warning | The build chooses the JDK it compiles with through a Java toolchain, rather than inheriting whichever JDK started it. |
java/version-declared | warning | The build declares the Java release it compiles for, and that release is no older than the configured floor. |
java/version-reproducible | warning | The Java release is declared by a mechanism that provisions the JDK, rather than one that asks whichever JDK is running to target an older release. |
Shared inputs
Every java guardrail declares these inputs, and each one may add its own.
| Input | Description | Default |
|---|---|---|
projectDir | Directory holding the project, relative to the directory the CLI runs in. | . |
Shared collectors
Every java guardrail is handed the facts these collectors gather, and each one may ask for more of its own.
| Collector | Gathers |
|---|---|
java | The Java version the Gradle or Maven build declares, how it declares it, and whether that mechanism makes the build reproducible, for the project and for every Gradle project it includes. |
Every guardrail in this category is configured the same way, in the guardrails.checks array of buildnote.json. See Configuring guardrails for every option, and Guardrails to search the whole library.