-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
84 lines (77 loc) · 2.5 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "checkstyle"
}
allprojects {
repositories {
mavenCentral()
google()
jcenter()
}
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "8.7"
configFile = file("$rootProject.projectDir/config/checkstyle/checkstyle.xml")
//sourceSets = [] // To avoid automatically running during check/build
//maxWarnings = 0 // To fail on warnings, for use in lint checks.
}
}
task build {
dependsOn(':libdtn-client-api:build')
dependsOn(':libldcp:build')
dependsOn(':libdtn-client-ldcp:build')
dependsOn(':libdtn-common:build')
dependsOn(':libdtn-core-api:build')
dependsOn(':libdtn-core:build')
dependsOn(':libdtn-module-hello:build')
dependsOn(':libdtn-module-ipdiscovery:build')
dependsOn(':libdtn-module-ldcp:build')
dependsOn(':libdtn-module-stcp:build')
dependsOn(':dtncat:build')
dependsOn(':dtnping:build')
dependsOn(':terra:build')
}
task bundle(type: Exec) {
dependsOn(':libldcp:jar')
dependsOn(':libdtn-client-api:jar')
dependsOn(':libdtn-client-ldcp:jar')
dependsOn(':libdtn-common:jar')
dependsOn(':libdtn-core-api:jar')
dependsOn(':libdtn-core:jar')
dependsOn(':libdtn-module-hello:jar')
dependsOn(':libdtn-module-ipdiscovery:jar')
dependsOn(':libdtn-module-ldcp:jar')
dependsOn(':libdtn-module-stcp:jar')
dependsOn(':dtncat:distTar')
dependsOn(':dtnping:distTar')
dependsOn(':terra:distTar')
commandLine './package.sh'
}
task clean(type: Delete) {
dependsOn(':libldcp:clean')
dependsOn(':libdtn-client-api:clean')
dependsOn(':libdtn-client-ldcp:clean')
dependsOn(':libdtn-common:clean')
dependsOn(':libdtn-core-api:clean')
dependsOn(':libdtn-core:clean')
dependsOn(':libdtn-module-hello:clean')
dependsOn(':libdtn-module-ipdiscovery:clean')
dependsOn(':libdtn-module-ldcp:clean')
dependsOn(':libdtn-module-stcp:clean')
dependsOn(':dtncat:clean')
dependsOn(':dtnping:clean')
dependsOn(':terra:clean')
delete rootProject.buildDir
}