Gradle: War Task has Conflicting Includes/Excludes

﹥>﹥吖頭↗ 提交于 2019-12-05 05:21:09

I am not sure why you exclude WEB-INF/classes/css instead of src/main/webapp/css in your build.gradle, but copying the minified CSS files instead of the original ones is achieved by:

apply plugin: 'war'

war {
  // dependsOn 'minify'

  from 'src/main/webapp'
  exclude 'css' // or: "exclude 'WEB-INF/classes/css'"

  from('build/tmp/css') {
    include '**/*.css'
    into 'css' // or: "into 'WEB-INF/classes/css'"
  }
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!