forked from Team-6615-Bellevillains/sysid-nobackward
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
113 lines (99 loc) · 3.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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
id "base"
id "edu.wpi.first.GradleVsCode" version "1.1.0"
id "edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin" version "4.1.0"
id "edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin" version "2020.2"
id "org.ysb33r.doxygen" version "0.7.0"
id "edu.wpi.first.NativeUtils" version "2023.11.1" apply false
}
// Configure versioning for this project.
wpilibVersioning.buildServerMode = project.hasProperty("buildServer")
wpilibVersioning.releaseMode = project.hasProperty("releaseMode")
wpilibVersioning.useAllTags = true
// Configure what repositories we should get dependencies from.
allprojects {
// if (project.hasProperty("releaseMode")) {
wpilibRepositories.addAllReleaseRepositories(it)
// } else {
// wpilibRepositories.addAllDevelopmentRepositories(it)
// }
}
// Finalize the versioning for this project.
if (project.hasProperty("publishVersion")) {
wpilibVersioning.version.set(project.publishVersion)
}
wpilibVersioning.version.finalizeValue()
// Check if we are skipping desktop robot projects.
if (project.hasProperty("skipDesktopRobots")) {
println "Warning: you are skipping desktop robot builds!"
println "Integration tests will not work!"
}
// Configure output files.
def outputsFolder = file("$buildDir/allOutputs")
def versionFile = file("$outputsFolder/version.txt")
doxygen {
executables {
doxygen version : '1.9.4',
baseURI : 'https://frcmaven.wpi.edu/artifactory/generic-release-mirror/doxygen'
}
}
doxygen {
case_sense_names false
extension_mapping 'inc=C++', 'no_extension=C++'
extract_all true
extract_static true
file_patterns '*'
full_path_names true
generate_html true
generate_latex false
generate_treeview true
html_extra_stylesheet 'theme.css'
html_timestamp true
outputDir 'build/docs/'
project_name 'SysId'
project_logo 'sysid-application/src/main/native/resources/sysid-128.png'
project_number wpilibVersioning.version.get()
source 'sysid-application/src/integrationtest-utils', 'sysid-application/src/main/native/cpp', 'sysid-application/src/main/native/include', 'sysid-library/src', 'sysid-projects/src'
quiet true
recursive true
strip_code_comments false
use_mathjax true
warn_as_error 'FAIL_ON_WARNINGS'
warn_if_doc_error true
warn_if_undocumented true
warn_no_paramdoc true
warnings true
}
task outputVersions() {
outputs.files(versionFile)
doFirst {
buildDir.mkdir()
outputsFolder.mkdir()
}
doLast {
versionFile.write wpilibVersioning.version.get()
}
}
task copyAllOutputs(type: Copy) {
destinationDir outputsFolder
}
task run {
dependsOn ":sysid-application:run"
}
task runAnalysisIntegrationTests {
dependsOn ":sysid-application:runAnalysisIntegrationTests"
}
task runGenerationIntegrationTests {
dependsOn ":sysid-application:runGenerationIntegrationTests"
}
copyAllOutputs.dependsOn outputVersions
project.build.dependsOn outputVersions
project.build.dependsOn copyAllOutputs
ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.dependsOn task
copyAllOutputs.inputs.file task.archivePath
copyAllOutputs.from task.archivePath
}
wrapper {
gradleVersion = '7.5.1'
}