gradle-node-plugin

Gradle plugin for integrating NodeJS in your build.

APACHE-2.0 License

Stars
605
Committers
55

Bot releases are visible (Hide)

gradle-node-plugin - 7.0.2 Latest Release

Published by deepy 8 months ago

What's Changed

  • Prevent misconfigured workDir from removing all unrelated files #297

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/7.0.1...7.0.2

gradle-node-plugin - 7.0.1

Published by deepy about 1 year ago

gradle-node-plugin - 7.0.0

Published by deepy about 1 year ago

What's Changed

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/6.0.0...7.0.0

gradle-node-plugin - 6.0.0

Published by deepy about 1 year ago

  • Removed deprecated nodeModulesDir from NodeExtension
  • The resolved/computed node directory and platform are stored in resolvedNodeDir and resolvedPlatform on NodeExtension
  • Fixes configuration-cache issue in Gradle 8.4
  • Removes the entire PlatformHelper as the functionality has migrated into top-level functions
  • Removes the deprecated HelperExecution
  • Fixed failure querying the task inputs/outputs on 8+ with configuration-cache enabled #259
  • ProxySetting.FORCED will now unset environment variables configured outside of Gradle, forcing the settings to match #153

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/5.0.0...6.0.0

gradle-node-plugin - 5.0.0

Published by deepy over 1 year ago

  • Support configuration-cache on Gradle 8.1 #271
  • Store node directory path on NodeExtension
  • Store the computed platform on NodeExtension
  • Deprecate parts of PlatformHelper that require executing commands during configuration
  • Re-introduce support for Gradle 6.6 and newer

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/4.0.0...5.0.0

gradle-node-plugin - 4.0.0

Published by deepy over 1 year ago

What's Changed

  • Drop support for versions lower than Gradle 7.5.1
  • Rename package.json extension to packageJson #232
  • Support configuration-cache on Gradle 8.1 #271

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.6.0...4.0.0

gradle-node-plugin - 3.6.0

Published by deepy over 1 year ago

gradle-node-plugin - 3.5.1

Published by deepy almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.5.0...3.5.1

gradle-node-plugin - 3.5.0

Published by deepy about 2 years ago

  • Add ExecResult to tasks #237
  • Don't run npmInstall if package.json is missing #174
gradle-node-plugin - 3.4.0

Published by deepy over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.3.0...3.4.0

gradle-node-plugin - 3.3.0

Published by deepy over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.2.1...3.3.0

gradle-node-plugin - 3.2.1

Published by deepy over 2 years ago

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.2.0...3.2.1

  • Backwards compatibility fix for those using VariantComputer #213
  • Prevent M1 Macs from attempting to download a non-existent distribution #214
gradle-node-plugin - 3.2.0

Published by deepy over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/node-gradle/gradle-node-plugin/compare/3.1.1...3.2.0

gradle-node-plugin -

Published by deepy about 3 years ago

  • Add support for Linux on Z system (s390x) #193
gradle-node-plugin - 3.0.1

Published by bsautel over 3 years ago

  • Fixes a bug with the task rule preventing it from being configured #145
  • Rewrite the code to Kotlin (issue #17)
    (thanks mikejhill
    for the pull request)
  • Improve the Kotlin DSL support (see this Kotlin DSL example
    that shows how to use this plugin version with Kotlin)
  • Upgrade default Node.js version to 14.15.4 (bundled with npm 6.14.10), the latest LTS version
  • Add support of lazy configuration (issue #39)
  • Add support of Gradle Configuration Cache (introduced in Gradle 6.8) (issue #111)
  • Fix some remaining input/output declaration issues (issue
    #34)
  • Gradle 5.6.4+ support (instead of Gradle 5.0.0+ before)
  • Node.js 10+ support (issue #100)
  • Improved automatic proxy configuration (issue #113), use http:// for both HTTP_PROXY and HTTPS_PROXY
  • Improved proxy configuration (PR #135)
  • npm 7+ support (issue #123)
  • Improved ARM support (issue #130)
  • Gradle configuration cache support (issue #111)
  • Add RepositoryContentDescriptor to IvyRepository #136

Breaking changes

This version breaks backward compatibility. It should not be visible for most Groovy DSL users since the Groovy DSL
handles transparently most of these changes.
Here is what changed:

  • All the packages were renamed (they were inherited from the original forked project):
    • com.moowork.gradle.node (and all children) renamed to com.github.gradle.node
    • com.moowork.gradle.node.npm renamed to com.github.gradle.node.npm.task
    • com.moowork.gradle.node.yarn renamed to com.github.gradle.node.yarn.task
  • All the configuration properties (the node extension and all tasks) are now some
    lazy properties as recommended by
    Gradle. This makes this plugin fully compatible with lazy configuration (tasks will be configured only if they need to
    run and configuration properties are read only at runtime if needed and not at configuration time).
  • Thanks to the Kotlin rewrite, some properties now have a stronger typing.
  • nodeModulesDir option was renamed to nodeProjectDir (name more explicit and less confusing)
    (issue #99). The former name still works but is
    deprecated.
  • Change the syntax to configure nodeModulesOutputFilter on npmInstall and yarn tasks. It also affects Groovy DSL
    users. Use now nodeModulesOutputFilter { ... } instead of nodeModulesOutputFilter = { ... }.
gradle-node-plugin - 2.2.4 - Fix an issue with the yarn task

Published by bsautel over 4 years ago

Fix a duplicated node_modules output declaration in the yarn task. This fix speeds up this task.

gradle-node-plugin - 2.2.3 - backport fixes and release from pre-kotlin #80

Published by bsautel over 4 years ago

The previous release (2.2.2) was released by error from the development branch which contains an entire Kotlin rewrite of the plugin code and many backward compatibility breaks. This new version replaces the previous one and adds one fix.

  • Make npm and npx symlinks relative. PR #68
  • NpmSetupTask does not work when using separate http and https proxy settings #69
gradle-node-plugin - 2.2.2 Hotfix for relative binary symlinks

Published by deepy over 4 years ago

Edit: this release was broken, see #80. Use 2.2.3 instead.

  • Make npm and npx symlinks relative. PR #68
gradle-node-plugin - 2.2.1 - Hotfix for #63

Published by deepy over 4 years ago

  • Only use fileTree for npmInstall output if a filter is configured. Hotfix for #63