Asset-Pipeline 不排除文件

Asset-Pipeline doesn't exclude files

我无法排除 Grails 3 中的某些文件,Gradle 多模块项目。配置与 documentation 中描述的完全相同。

project\module\grails-app\conf\application.groovy 中我定义了排除项:grails.assets.plugin."module-plugin".excludes = ["**/*.md"]

然后我调用模块级别 ../gradlew assetClean../gradlew assetCompile

有什么想法吗?

我在project/build.gradle中定义了它,而不是在project/module/grails-app/conf/application.groovy中。

这样就可以了!