File tree 2 files changed +13
-15
lines changed
EventBusTestSubscriberInJar
2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 1
- apply plugin : ' java'
1
+ apply plugin : " java-library "
2
2
3
3
java. sourceCompatibility = JavaVersion . VERSION_1_8
4
4
java. targetCompatibility = JavaVersion . VERSION_1_8
@@ -8,18 +8,16 @@ java.targetCompatibility = JavaVersion.VERSION_1_8
8
8
sourceSets {
9
9
test {
10
10
java {
11
- srcDirs + = [' src/main/java' ]
11
+ srcDirs + = [" src/main/java" ]
12
12
}
13
13
}
14
14
}
15
15
16
16
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"
23
21
}
24
22
25
23
tasks. withType(JavaCompile ) {
Original file line number Diff line number Diff line change 1
- apply plugin : ' java'
1
+ apply plugin : " java-library "
2
2
3
- group = ' de.greenrobot'
4
- version = ' 3.0.0'
3
+ group = " de.greenrobot"
4
+ version = " 3.0.0"
5
5
java. sourceCompatibility = JavaVersion . VERSION_1_8
6
6
java. targetCompatibility = JavaVersion . VERSION_1_8
7
7
@@ -10,20 +10,20 @@ configurations {
10
10
}
11
11
12
12
dependencies {
13
- compile project(' :eventbus-java' )
14
- provided project(' :eventbus-annotation-processor' )
13
+ implementation project(" :eventbus-java" )
14
+ annotationProcessor project(" :eventbus-annotation-processor" )
15
15
}
16
16
17
17
sourceSets {
18
18
main {
19
19
compileClasspath + = configurations. provided
20
20
java {
21
- srcDir ' src'
21
+ srcDir " src"
22
22
}
23
23
}
24
24
}
25
25
26
26
compileJava {
27
- options. compilerArgs << ' -AeventBusIndex=org.greenrobot.eventbus.InJarIndex'
27
+ options. compilerArgs << " -AeventBusIndex=org.greenrobot.eventbus.InJarIndex"
28
28
options. fork = true
29
29
}
You can’t perform that action at this time.
0 commit comments