apply plugin: 'java' apply plugin: 'maven' repositories { mavenCentral() mavenLocal() } dependencies { compile 'com.dt:dtcore:1.0.0-du' //compile 'com.ionu:eye:1.0.0' doing it this way will get from artifactory compile 'commons-codec:commons-codec:1.9' //compile 'com.ionu:ionu-configuration:2.0.0' //compile 'org.apache.httpcomponents:httpcore:4.2.4' //compile 'org.apache.httpcomponents:httpcore::4.+' testCompile 'junit:junit:4.+' compile files('libs/eye-2.0.0.jar') compile files('libs/K2Client-2.0.0.jar') compile files('libs/ionuSamd-2.0.0.jar') }