gradle-js-plugin
gradle-js-plugin copied to clipboard
How to handle deprecated message related to Gradle 6.0 and the gradle-js-plugin ?
With the latest version of Gradle - currently using 5.1 - I am getting a new deprecated code notice in my build:
Internal API constructor FactoryNamedDomainObjectContaineronstructor AbstractNamedDomainObjectContainer(Class<T>, Instantiator) has been deprecated.
When using the --stacktrace option, I am getting the following extra information:
Internal API constructor FactoryNamedDomainObjectContaineronstructor AbstractNamedDomainObjectContainer(Class<T>, Instantiator) has been deprecated. This is scheduled to be removed in Gradle 6.0. Don't use internal API
at org.gradle.api.internal.AbstractNamedDomainObjectContainer.
Full report should be available from https://gradle.com/s/5opyqj6szezyi - not sure if the link can be shared here - alternate URL: https://scans.gradle.com/s/5opyqj6szezyi/deprecations?openUsages=WzMsNF0#deprecation-3-usage-0
I'm facing the same issue. The same goes for the gradle-css-plugin
I have created PRs for both: https://github.com/eriwen/gradle-css-plugin/pull/52 https://github.com/eriwen/gradle-js-plugin/pull/171 Maybe this helps. I hope it gets seen by a contributor.
+1 Is this project still maintained?
+1, this would be great to fix
Now as Gradle 6 has been released the title should state something like "Incompatibility with Gradle 6".
I solved this issue switching to webpack and calling it in a custom gradle task:
task webpackBuild(type: Exec) {
workingDir 'base/path'
commandLine 'npm', 'run', 'build'
}