File tree Expand file tree Collapse file tree
main/kotlin/com/github/gradle/node
node-allow-insecure-protocol
node-disallow-insecure-protocol
node-fail-on-project-repos-download Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 - name : Install Node.js
1515 uses : actions/setup-node@v3
1616 with :
17- node-version : 18
17+ node-version : 24
1818 - name : Gradle Version
1919 run : ./gradlew --version
2020 - name : Build Node.js Scripts Project
Original file line number Diff line number Diff line change 2323 - name : Install Node.js
2424 uses : actions/setup-node@v4
2525 with :
26- node-version : 18
26+ node-version : 24
2727 - name : Setup Gradle
2828 uses : gradle/actions/setup-gradle@v4.4.1
2929 with :
Original file line number Diff line number Diff line change 1919 - name : Install Node.js
2020 uses : actions/setup-node@v3
2121 with :
22- node-version : 18
22+ node-version : 24
2323 - name : Build
2424 run : ./gradlew build
2525 - name : Publish
Original file line number Diff line number Diff line change 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 )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ plugins {
1616}
1717
1818node {
19- version.set(" 18.17.1 " )
19+ version.set(" 24.16.0 " )
2020 npmVersion.set(" " )
2121 yarnVersion.set(" " )
2222 npmInstallCommand.set(" install" )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
33}
44
55node {
6- version = " 18.17.1 "
6+ version = " 24.16.0 "
77 distBaseUrl = " http://nodejs.org/dist/"
88 download = true
99 allowInsecureProtocol = true
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
33}
44
55node {
6- version = " 18.17.1 "
6+ version = " 24.16.0 "
77 distBaseUrl = " https://nodejs.org/dist/"
88 download = true
99 allowInsecureProtocol = false
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ plugins {
33}
44
55node {
6- version = " 18.17.1 "
6+ version = " 24.16.0 "
77 distBaseUrl = null
88 download = true
99 workDir = file(" build/node" )
You can’t perform that action at this time.
0 commit comments