Closed mjustin closed 12 months ago
Hello @mjustin,
Thanks for pointing out notes for release 7.0.0 are missing this information. It has been completed accordingly.
BR
Thank you @mjustin for the workaround I had to do that as well
val updateBrowserList by registering(RunNpm::class) {
group = "frontend"
description = "npx update-browserslist-db@latest"
// Browserslist: caniuse-lite is outdated. Please run:
// npx update-browserslist-db@latest
// Why you should do it regularly: https://github.com/browserslist/update-db#readme
script = "exec -- update-browserslist-db@latest"
}
installFrontend {
dependsOn(updateBrowserList)
}
Thanks. The updated 7.0.0 release notes definitely call this out now.
- Task type
RunNpx
was removed after commandnpx
became deprecated. Commandnpm exec
should be used instead.
Description
I have a Gradle project which has custom tasks defined of type
RunNpx
. When I upgrade myorg.siouan.frontend-jdk11
plugin version to 8.0.0 (or 7.0.0), I get a build failure on my file import sinceorg.siouan.frontendgradleplugin.infrastructure.gradle.RunNpx
no longer exists. However, I see no notice (in the release notes, GitHub project issues, or otherwise) that this task was removed.My expectation is that if a public, previously documented task is removed from the API, its removal would be called out so that users know that they need to change their application in order to migrate, and so they know the migration steps needed.
Build file
Failure
Workaround
A workaround is to switch from
npx
tonpm exec --
:Environment
org.siouan.frontend-jdk11
ororg.siouan.frontend-jdk17
Settings in
build.gradle[.kts]
file: