-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (51 loc) · 1.17 KB
/
build.gradle
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.google.guava:guava:24.1-jre'
classpath 'com.android.tools.build:gradle:4.0.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
}
}
}
}
task runLocalServer {
dependsOn ':backend:appengineStart'
doLast {
println "Server started..."
}
}
task runAndroidTests {
dependsOn ':app:connectedAndroidTest'
doLast {
println "Testing finished..."
}
}
task stopLocalServer {
dependsOn ':backend:appengineStop'
doLast {
println "Server stopped..."
}
}
task automateCustomTask {
dependsOn 'runLocalServer'
dependsOn 'runAndroidTests'
dependsOn 'stopLocalServer'
runLocalServer.finalizedBy runAndroidTests
runAndroidTests.finalizedBy stopLocalServer
}