How to Exclude directory and its contents in gradle war

前端 未结 4 1011
醉话见心
醉话见心 2021-01-15 03:43

I am using gradle war plugin, I am trying to exclude some directories inside WEB-INF directory while packing a war, but the excludes don\'t seem to

4条回答
  •  终归单人心
    2021-01-15 03:50

    Are you looking for something like this http://gradle.1045684.n5.nabble.com/Exclude-properties-file-from-war-td3365147.html? If so only remember, that in recent versions of Gradle (I'm using 1.6) there's sourceSets.main.output. It'd helpful if you could specify what metadata is and attach your project's layout.

    One more thing: you may also like to:

    //remove jars only for provided compile
    classpath -= configurations.providedCompile
    

提交回复
热议问题