forked from boncey/Flickr4Java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (49 loc) · 1.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'application'
version = '3.0.4'
group = 'com.flickr4java.flickr'
sourceCompatibility = '1.5'
targetCompatibility = '1.5'
repositories {
mavenCentral()
}
// add examples in the same way as "main" and "test"
sourceSets {
main {
java {
srcDir 'src/examples/java'
}
resources {
srcDir 'src/examples/resources'
}
}
}
dependencies {
compile 'com.github.scribejava:scribejava-apis:6.9.0'
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task setupTests(type:JavaExec, dependsOn:classes) {
standardInput = System.in
main = 'com.flickr4java.flickr.test.Setup'
classpath = sourceSets.test.runtimeClasspath
}
//create a javadoc jar for maven repo
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}
//create sources jar for maven repo
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
//so that source and javadoc jars are included
artifacts {
archives jar
archives javadocJar
archives sourcesJar
}