repositories { mavenCentral() } apply plugin: "java" dependencies { //compile "com.github.jreddit:jreddit:1.0.3" //not supported by reddit api anymore //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' } sourceSets { main.java.srcDir "src/main" test.java.srcDir "src/test" } jar { from configurations.compile.collect { zipTree it } manifest.attributes "Main-Class": "sh.adb.RandomRedditMemesAPI.Main" }