Skip to content

Commit df94b23

Browse files
Update Java test projects.
1 parent 740a862 commit df94b23

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

EventBusTestJava/build.gradle

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apply plugin: 'java'
1+
apply plugin: "java-library"
22

33
java.sourceCompatibility = JavaVersion.VERSION_1_8
44
java.targetCompatibility = JavaVersion.VERSION_1_8
@@ -8,18 +8,16 @@ java.targetCompatibility = JavaVersion.VERSION_1_8
88
sourceSets {
99
test {
1010
java {
11-
srcDirs += ['src/main/java']
11+
srcDirs += ["src/main/java"]
1212
}
1313
}
1414
}
1515

1616
dependencies {
17-
compile fileTree(dir: 'libs', include: '*.jar')
18-
compile(project(':eventbus-java')) {
19-
exclude group: "com.google.android" // Does not seem to work...
20-
}
21-
annotationProcessor project(':eventbus-annotation-processor')
22-
compile 'junit:junit:4.12'
17+
implementation fileTree(dir: "libs", include: "*.jar")
18+
implementation(project(":eventbus-java"))
19+
annotationProcessor project(":eventbus-annotation-processor")
20+
implementation "junit:junit:4.13.2"
2321
}
2422

2523
tasks.withType(JavaCompile) {
+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
apply plugin: 'java'
1+
apply plugin: "java-library"
22

3-
group = 'de.greenrobot'
4-
version = '3.0.0'
3+
group = "de.greenrobot"
4+
version = "3.0.0"
55
java.sourceCompatibility = JavaVersion.VERSION_1_8
66
java.targetCompatibility = JavaVersion.VERSION_1_8
77

@@ -10,20 +10,20 @@ configurations {
1010
}
1111

1212
dependencies {
13-
compile project(':eventbus-java')
14-
provided project(':eventbus-annotation-processor')
13+
implementation project(":eventbus-java")
14+
annotationProcessor project(":eventbus-annotation-processor")
1515
}
1616

1717
sourceSets {
1818
main {
1919
compileClasspath += configurations.provided
2020
java {
21-
srcDir 'src'
21+
srcDir "src"
2222
}
2323
}
2424
}
2525

2626
compileJava {
27-
options.compilerArgs << '-AeventBusIndex=org.greenrobot.eventbus.InJarIndex'
27+
options.compilerArgs << "-AeventBusIndex=org.greenrobot.eventbus.InJarIndex"
2828
options.fork = true
2929
}

0 commit comments

Comments
 (0)