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 { implementation group: 'commons-codec', name: 'commons-codec', version: '1.4' implementation group: 'commons-fileupload', name: 'commons-fileupload', version: '1.2' implementation group: 'commons-io', name: 'commons-io', version: '2.0' implementation group: 'commons-httpclient', name: 'commons-httpclient', version: '3.1' implementation group: 'commons-lang', name: 'commons-lang', version: '2.5' implementation 'com.google.code.gson:gson:2.2.2' implementation 'org.expressme:JOpenId:1.08' }