configure(webToolkitModule) { configurations.compile { // зависимости - библиотеки, которые не требуются для сборки виджетсета exclude group: 'org.springframework' exclude group: 'org.springframework.security.oauth' exclude group: 'org.eclipse.persistence' exclude group: 'org.codehaus.groovy' exclude group: 'org.apache.ant' //exclude group: 'org.eclipse.jetty' exclude group: 'com.esotericsoftware' exclude group: 'com.googlecode.owasp-java-html-sanitizer' exclude group: 'net.sourceforge.htmlunit' // зависимости - аддоны, которые не содержат web-компонентов или виджетсет // и поэтому не требуются для сборки виджетсета //exclude group: 'com.haulmont.addon.restapi' //exclude group: 'com.haulmont.reports' //exclude group: 'com.haulmont.addon.admintools' //exclude group: 'com.haulmont.addon.search' //exclude group: 'com.haulmont.addon.emailtemplates' exclude group: 'de.diedavids.cuba.metadataextensions' exclude group: 'de.diedavids.cuba.instantlauncher' exclude group: 'de.diedavids.cuba.runtimediagnose' exclude group: 'de.diedavids.cuba.wizard' exclude group: 'com.haulmont.addon.grapesjs' //exclude group: 'com.haulmont.addon.dashboard' } // ... dependencies { compile(webModule) runtime(servletApi) } jar { from sourceSets.main.allJava } task buildWidgetSet(type: CubaWidgetSetBuilding) { widgetSetClass = 'com.company.itam.web.toolkit.ui.AppWidgetSet' } task debugWidgetSet(type: CubaWidgetSetDebug) { widgetSetClass = 'com.company.itam.web.toolkit.ui.AppWidgetSet' } task webArchive(dependsOn: buildWidgetSet, type: Jar) { from file("$buildDir/web") classifier = 'client' } artifacts { archives webArchive } task deploy(dependsOn: webArchive, type: Copy) { from webArchive into "$cuba.tomcat.dir/webapps/${modulePrefix}/WEB-INF/lib" } }