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
25 lines (21 loc) · 748 Bytes
/
Copy pathbuild.gradle
File metadata and controls
25 lines (21 loc) · 748 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
apply plugin: "java-library"
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
// 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 {
implementation fileTree(dir: "libs", include: "*.jar")
implementation(project(":eventbus-java"))
annotationProcessor project(":eventbus-annotation-processor")
implementation "junit:junit:4.13.2"
}
tasks.withType(JavaCompile) {
options.compilerArgs += [ "-AeventBusIndex=org.greenrobot.eventbus.EventBusJavaTestsIndex" ]
}