-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (47 loc) · 1.27 KB
/
build.gradle.kts
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
description = "ARIG Association - Robots"
tasks.wrapper {
description = "Generates gradlew[.bat] scripts"
gradleVersion = "8.1.1"
distributionType = Wrapper.DistributionType.ALL
}
// ********************* OLD ************************* //
// Configuration de tous les projets
/*
configure(allprojects) { project ->
tasks.test {
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
}
tasks.jacocoTestReport {
reports {
xml.required.set(false)
csv.required.set(false)
html.outputLocation.set(layout.buildDirectory.dir("jacocoHtml"))
}
}
}
*/
// Configuration du projet racine
/*
configure(rootProject) {
// Suppression des artéfact par défaut sur le rootProject (jar, etc...)
configurations.archives.artifacts.clear()
tasks.register('codeCoverageReport', JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("** /build/jacoco/*.exec")
subprojects.each {
sourceSets it.sourceSets.main
}
reports {
xml.enabled true
xml.destination file("${buildDir}/reports/jacoco/report.xml")
html.enabled false
csv.enabled false
}
}
codeCoverageReport.dependsOn {
subprojects*.test
}
}
*/