forked from greenrobot/EventBus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (32 loc) · 987 Bytes
/
build.gradle
File metadata and controls
38 lines (32 loc) · 987 Bytes
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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "net.ltgt.gradle:gradle-apt-plugin:0.12"
}
}
apply plugin: 'java'
// plugin to make it easier/safer to use EventBus annotation processor
apply plugin: 'net.ltgt.apt-idea'
sourceCompatibility = 1.7
// we have tests in the main source set so they can be shared with the Android test module
// to make Gradle pick them up, add the dir to the test source set
sourceSets {
test {
java {
srcDirs += ['src/main/java']
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile(project(':eventbus')) {
exclude group: "com.google.android" // Does not seem to work...
}
apt project(':eventbus-annotation-processor')
compile 'junit:junit:4.12'
}
tasks.withType(JavaCompile) {
options.compilerArgs += [ "-AeventBusIndex=org.greenrobot.eventbus.EventBusJavaTestsIndex" ]
}