Document which version of Node.js is provisioned by default and how to override it
The Antora plugin builds on / inherits from the Node.js plugin. The Node.js plugin is configured to use a specific version of Node.js by default. And which version gets used depends on which version of the Node.js plugin the Antora plugin specifies. Currently, that version of Node.js is 16.14.2.
It's possible to override this value using the node
block in the Gradle build script.
node {
version = '18.13.0'
}
There's no need to apply the Node.js plugin to enable this block as the Antora plugin already applies it.
See https://github.com/node-gradle/gradle-node-plugin/blob/master/docs/usage.md#configuring-the-plugin
It's also possible to use this block to configure other Node.js and npm settings.
Edited by Dan Allen