-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
57 lines (44 loc) · 1.2 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
defaultTasks 'clean', 'build', 'artifactoryPublish'
group = 'com.blinkbox.books'
version = '1.2.1'
task wrapper(type: Wrapper) {
gradleVersion = '1.8'
}
apply plugin : 'java-robolectric'
apply plugin : 'maven'
sourceCompatibility = 1.6
targetCompatibility = 1.6
// get 'java-robolectric' from Maven Central
buildscript {
repositories {
mavenCentral()
}
dependencies {
// use version 2.0 for Robolectric 2.0
classpath group: 'com.stanfy.android', name: 'gradle-plugin-java-robolectric', version: '2.0'
}
}
repositories {
mavenCentral()
}
javarob {
packageName = 'com.blinkbox.books'
}
test {
scanForTestClasses = false
include "**/*Test.class"
}
dependencies {
compile "com.google.code.gson:gson:2.2.4"
compile fileTree(dir : 'libs', include : '*.jar')
compile group: 'com.google.android', name: 'android', version: '4.1.1.4'
testCompile group: 'junit', name: 'junit', version: '4.10'
testCompile group: 'org.robolectric', name: 'robolectric', version: '2.0-alpha-2'
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives javadocJar
}