You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
Groovy
40 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven'
|
|
}
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.encoding = 'UTF-8'
|
|
}
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
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'
|
|
compile group: 'org.slf4j', name : 'nlog4j', version: '1.2.25'
|
|
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"
|
|
} |