latest
fun latest(version: String = "latest", cacheFile: File? = null, config: NodeVersions.FetchConfig? = null): String
Parameters
cache File
where to persist the parsed Node version list (e.g. rootProject's build dir), so that repeated builds/CI jobs can avoid re-fetching https://nodejs.org/dist. Only the first call that supplies one takes effect, since the fetched version list itself is cached for the lifetime of this object (i.e. of the Gradle daemon).
config
tunables for the fetch/cache; only the first call that supplies one takes effect, for the same reason as cacheFile.