42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 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'
 | 
						|
    compile group: 'org.slf4j', name : 'slf4j-api', version: '1.6.6'
 | 
						|
    compile group: 'org.slf4j', name : 'slf4j-simple', version: '1.6.6'
 | 
						|
    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"
 | 
						|
} |