apply plugin: 'war' configurations { firstJars } dependencies { compile project(':common'), project(':dbmigration'), project(':authentication'), project(':openbis_api'), project(':openbis-common'), 'org.eclipse.jetty:jetty-util:8.1.8.v20121106', 'org.eclipse.jetty:jetty-deploy:8.1.8.v20121106', 'org.hibernate:hibernate-search:3.4.2.Final', 'javax.validation:validation-api:1.0.0.GA', 'com.extjs.gxt:gxt:2.2.5', 'com.google.gwt:gwt:2.4.0', 'org.hibernate:hibernate-validator:4.2.0.Final', 'com.google.gwt:debug-panel:1.0.0', 'com.google.gwt:gwt-user:2.4.0', 'ch.systemsx.cisd:cisd-hotdeploy:13.01.0', 'it.unimi.dsi:fastutil:6.1.0', // A LOT NEVER THAN ORIGINAL 'org.apache.lucene:lucene-queries:3.1.0', 'org.apache.poi:poi-ooxml:3.8', 'commons-collections:commons-collections:4.01' testCompile project(path: ':common', configuration: 'tests'), project(path: ':dbmigration', configuration: 'tests'), 'org.springframework:spring-test:2.5.6.SEC01', 'org.hamcrest:hamcrest-all:1.1' testRuntime 'commons-fileupload:commons-fileupload:1.2.1' //optional dependency of spring-web // jetty has to be before gwt-user in classpath, otherwise a jar signature error occurs firstJars 'org.eclipse.jetty:jetty-deploy:8.1.8.v20121106' } sourceSets.test.runtimeClasspath = configurations.firstJars + sourceSets.test.runtimeClasspath eclipse.classpath.file { whenMerged { classpath -> def projectRefs = classpath.entries.findAll{entry -> entry.kind =='lib' && entry.path.contains('gwt-user')} classpath.entries.removeAll(projectRefs) classpath.entries.addAll(projectRefs) } }