apply plugin: 'war' version = '0.9.0' repositories { mavenCentral() } task resolveDeps(type: Copy) { into('lib') from configurations.default from configurations.default.allArtifacts.file } war { baseName = 'demo' version = '' } dependencies { compile group: 'commons-codec', name: 'commons-codec', version: '1.4' compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.2' compile group: 'commons-io', name: 'commons-io', version: '2.0' compile group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1' compile group: 'commons-lang', name: 'commons-lang', version: '2.5' compile 'com.google.code.gson:gson:2.2.2' compile 'org.expressme:JOpenId:1.08' }