@@ -5,31 +5,31 @@ buildscript {
5
5
6
6
dependencies {
7
7
classpath ' com.android.tools.build:gradle:2.2.3'
8
- classpath ' com.neenbedankt.gradle.plugins:android-apt:1.8'
9
8
}
10
9
}
11
10
12
11
apply plugin : ' com.android.application'
13
- apply plugin : ' com.neenbedankt.android-apt'
14
12
15
13
sourceCompatibility = 1.7
16
14
17
15
repositories {
18
16
jcenter()
19
17
}
20
18
21
- dependencies {
22
- androidTestApt project(' :EventBusAnnotationProcessor' )
23
- androidTestCompile project(' :EventBus' )
24
- compile fileTree(dir : ' libs' , include : ' *.jar' )
25
- androidTestCompile ' com.android.support.test:runner:0.4.1'
26
- androidTestCompile ' com.android.support.test:rules:0.4.1'
27
- }
28
-
29
19
android {
30
20
buildToolsVersion ' 25.0.2' // When updating, don't forget to adjust .travis.yml
31
21
compileSdkVersion 19
32
22
23
+ defaultConfig {
24
+ testApplicationId " de.greenrobot.event.test"
25
+ testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
26
+ javaCompileOptions {
27
+ annotationProcessorOptions {
28
+ arguments = [eventBusIndex : " org.greenrobot.eventbus.EventBusTestsIndex" ]
29
+ }
30
+ }
31
+ }
32
+
33
33
compileOptions {
34
34
sourceCompatibility = JavaVersion . VERSION_1_7
35
35
targetCompatibility = JavaVersion . VERSION_1_7
@@ -44,16 +44,12 @@ android {
44
44
java. srcDirs = [' src' ]
45
45
}
46
46
}
47
-
48
- defaultConfig {
49
- testApplicationId " de.greenrobot.event.test"
50
- testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
51
- }
52
47
}
53
48
54
- apt {
55
- arguments {
56
- eventBusIndex " org.greenrobot.eventbus.EventBusTestsIndex"
57
- }
49
+ dependencies {
50
+ androidTestAnnotationProcessor project(' :EventBusAnnotationProcessor' )
51
+ androidTestCompile project(' :EventBus' )
52
+ compile fileTree(dir : ' libs' , include : ' *.jar' )
53
+ androidTestCompile ' com.android.support.test:runner:0.4.1'
54
+ androidTestCompile ' com.android.support.test:rules:0.4.1'
58
55
}
59
-
0 commit comments