Skip to content
BETAGuardrails are in beta. The library, the configuration format and the CLI command can still change.

Guardrails

java

3 guardrails, all at version v1.

GuardrailDefault severityWhat it checks
java/toolchain-declaredwarningThe build chooses the JDK it compiles with through a Java toolchain, rather than inheriting whichever JDK started it.
java/version-declaredwarningThe build declares the Java release it compiles for, and that release is no older than the configured floor.
java/version-reproduciblewarningThe 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.

InputDescriptionDefault
projectDirDirectory 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.

CollectorGathers
javaThe 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.

Buildnote Limited
Registered in England and Wales, Reg: 16140412