Skip to content

Commit 7268de1

Browse files
committed
Upgrade node to latest LTS and npm to the bundled version
1 parent 092f105 commit 7268de1

10 files changed

Lines changed: 11 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Version 8.x *(unreleased)*
44
* Drop support for npm versions older than 7
5+
* Upgrade default Node to 24.16.0 and npm to 11.13.0
56

67
## Version 7.1.0 *(2024-09-27)*
78
* Add support for ARM64 Windows [#315](https://github.com/node-gradle/gradle-node-plugin/issues/315)

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ node {
211211
212212
// Version of node to download and install (only used if download is true)
213213
// It will be unpacked in the workDir
214-
version = "18.17.1"
214+
version = "24.16.0"
215215
216216
// Version of npm to use
217217
// If specified, installs it in the npmWorkDir

src/main/kotlin/com/github/gradle/node/NodeExtension.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ open class NodeExtension(project: Project) {
202202
/**
203203
* Default version of Node to download if none is set
204204
*/
205-
const val DEFAULT_NODE_VERSION = "18.17.1"
205+
const val DEFAULT_NODE_VERSION = "24.16.0"
206206

207207
/**
208208
* Default version of npm to download if none is set
209209
*/
210-
const val DEFAULT_NPM_VERSION = "9.6.7"
210+
const val DEFAULT_NPM_VERSION = "11.13.0"
211211

212212
@JvmStatic
213213
operator fun get(project: Project): NodeExtension {

src/test/resources/fixtures/kotlin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ plugins {
1616
}
1717

1818
node {
19-
version.set("18.17.1")
19+
version.set("24.16.0")
2020
npmVersion.set("")
2121
yarnVersion.set("")
2222
npmInstallCommand.set("install")

src/test/resources/fixtures/node-allow-insecure-protocol/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
node {
6-
version = "18.17.1"
6+
version = "24.16.0"
77
distBaseUrl = "http://nodejs.org/dist/"
88
download = true
99
allowInsecureProtocol = true

src/test/resources/fixtures/node-disallow-insecure-protocol/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
node {
6-
version = "18.17.1"
6+
version = "24.16.0"
77
distBaseUrl = "https://nodejs.org/dist/"
88
download = true
99
allowInsecureProtocol = false

src/test/resources/fixtures/node-fail-on-project-repos-download/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
}
44

55
node {
6-
version = "18.17.1"
6+
version = "24.16.0"
77
distBaseUrl = null
88
download = true
99
workDir = file("build/node")

src/test/resources/fixtures/node/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
node {
8-
version = "18.17.1"
8+
version = "24.16.0"
99
download = true
1010
workDir = file("build/node")
1111
}

src/test/resources/fixtures/npm/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
def changeInputs = isPropertyEnabled("changeInputs")
88

99
node {
10-
npmVersion = "9.6.7"
10+
npmVersion = "11.13.0"
1111
download = true
1212
workDir = file('build/node')
1313
}

src/test/resources/fixtures/npx/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ plugins {
55
}
66

77
node {
8-
npmVersion = "9.6.7"
8+
npmVersion = "11.13.0"
99
download = true
1010
workDir = file("build/node")
1111
}

0 commit comments

Comments
 (0)