//打包配置 //静态资源路径默认4个:classpath:/static,classpath:/public,classpath:/resources,classpath:/META-INF/resources
jar.enabled= true jar.into('META-INF/resources/') { from('src/main/webapp'){ //除去exclude某些静态路径的用法 exclude 'lib','img','resources','WEB-INF/lib','pipe','system','fonts','fms','css','a_data','js' } } jar { //除去某些编译类的用分 exclude('**/application.properties','**/config/WebMvcConfigs.class', '**/mybatis.xml', '**/generatorConfig.xml','**/jsonsource', '**/com/augurit/EmgyApp.*' ) }
//打包动作是在编译后开始的,java文件已经变成class