plugins { id 'java' id 'maven' } sourceCompatibility = 1.7 targetCompatibility = 1.7 configurations.all { } sourceSets { main.java.srcDir "src/main" test.java.srcDir "src/test" } repositories { mavenCentral() } dependencies { //jreddit 1.0.4 dependencies compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.3' compile group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.0' compile group: 'javax.xml.bind', name : 'jaxb-api', version: '2.3.1' testCompile group: 'commons-validator', name: 'commons-validator', version: '1.4.1' testCompile group: 'junit', name: 'junit', version: '4.8.1' testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.5' } jar { from configurations.compile.collect { zipTree it } manifest.attributes "Main-Class": "sh.adb.RandomRedditMemesAPI.Main" }