-
Notifications
You must be signed in to change notification settings - Fork 42
/
build.gradle
91 lines (71 loc) · 2.36 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
85
86
87
88
89
90
91
apply plugin: 'application'
apply plugin: 'idea'
repositories {
jcenter()
mavenCentral()
}
configurations {
checkstyleClasspath
}
task takeoffAndLand(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.TakeoffAndLand"
classpath = sourceSets.main.runtimeClasspath
}
task setRtlAltitude(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.SetRtlAltitude"
classpath = sourceSets.main.runtimeClasspath
}
task runMission(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.RunMission"
classpath = sourceSets.main.runtimeClasspath
}
task runCamera(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.RunCamera"
classpath = sourceSets.main.runtimeClasspath
}
task calibrate(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.Calibrate"
classpath = sourceSets.main.runtimeClasspath
}
task runDownloadLastLog(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.DownloadLastLog"
classpath = sourceSets.main.runtimeClasspath
}
task listPhotos(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.ListPhotos"
classpath = sourceSets.main.runtimeClasspath
}
task systemShell(dependsOn: 'classes', type: JavaExec) {
main = "io.mavsdk.example.SystemShell"
classpath = sourceSets.main.runtimeClasspath
}
task checkstyle(type: Checkstyle) {
configFile = rootProject.file("config/checkstyle/checkstyle.xml")
source 'src'
include '**/*.java'
exclude '**/gen/**'
classpath = project.files()
checkstyleClasspath = project.configurations.checkstyleClasspath
maxWarnings 0
reports {
xml.enabled true
xml.destination new File("$project.buildDir/reports/checkstyle/checkstyle_report.xml")
html.enabled true
html.destination new File("$project.buildDir/reports/checkstyle/checkstyle_report.html")
}
}
build.dependsOn 'checkstyle'
idea {
module {
inheritOutputDirs = false
outputDir = compileJava.destinationDir
testOutputDir = compileTestJava.destinationDir
}
}
dependencies {
checkstyleClasspath 'com.puppycrawl.tools:checkstyle:10.2'
implementation 'io.mavsdk:mavsdk:1.1.1'
implementation 'ch.qos.logback:logback-core:1.2.11'
implementation 'ch.qos.logback:logback-classic:1.2.11'
implementation 'org.slf4j:slf4j-api:1.7.36'
}