-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
50 lines (40 loc) · 1.1 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
buildscript {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'io.freefair.gradle-plugins:git-version:2.0.0-beta5'
}
}
repositories {
jcenter()
}
group = "com.github.CellularPrivacy"
apply plugin: 'io.freefair.git-version'
apply plugin: 'java'
apply plugin: 'maven'
sourceCompatibility = JavaVersion.VERSION_1_7
dependencies {
compile 'com.squareup.retrofit2:retrofit:2.0.2'
compile 'com.squareup.retrofit2:converter-gson:2.0.2'
testCompile 'junit:junit:4.12'
testCompile 'com.squareup.okhttp3:logging-interceptor:3.+'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier "sources"
}
javadoc.failOnError = false;
javadoc.options.links "http://square.github.io/retrofit/2.x/retrofit/"
javadoc.options.links "http://square.github.io/okhttp/3.x/okhttp/"
javadoc.options.links "http://docs.oracle.com/javase/7/docs/api/"
task javadocJar(type: Jar) {
from javadoc.getDestinationDir()
classifier "javadoc"
dependsOn javadoc
}
artifacts {
archives sourcesJar
archives javadocJar
}