apply plugin: 'war' apply plugin: 'eclipse-wtp' apply plugin: "java" repositories { jcenter() } configurations { all*.exclude module: 'servlet-api' } dependencies { compile fileTree(dir: './lib/', includes: ['*.jar']) compile 'com.fasterxml.jackson.core:jackson-databind:2.9.5' compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.+' compile group: 'commons-collections', name: 'commons-collections', version: '3.2' compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0' testCompile group: 'junit', name: 'junit', version: '4.+' }