Gradle build cache is not enabled for task

后端 未结 2 1933
萌比男神i
萌比男神i 2021-01-18 02:32

I have enabled gradle build cache for my project. But, we are using some non-built in tasks like npm-install from third party plugins. Gradle is not enabling cache for these

2条回答
  •  深忆病人
    2021-01-18 03:28

    Gradle documentation says:

    There are third party plugins that work well with the build cache. The most prominent examples are the Android plugin 3.1+ and the Kotlin plugin 1.2.21+. For other third party plugins, check their documentation to find out whether they support the build cache.

    So it depends on the plugin which provides the task npm-configure.

    If you are using the gradle-node-plugin from SRS, it should work since version 1.2.0 according to their changelog.

提交回复
热议问题