Improved the tasks according to the new gradle.

This commit is contained in:
MohitMaliFtechiz 2024-08-15 16:36:34 +05:30 committed by Kelson
parent 0b4bc66858
commit 8cd58a8136
4 changed files with 8 additions and 5 deletions

View File

@ -64,7 +64,7 @@ class AllProjectConfigurer {
buildTypes {
getByName("debug") {
isTestCoverageEnabled = false
isTestCoverageEnabled = true
multiDexEnabled = true
}
}

View File

@ -22,11 +22,12 @@ jacoco {
toolVersion = "0.8.12"
}
tasks.withType(Test) {
tasks.withType(Test).configureEach {
jacoco.includeNoLocationClasses = true
}
task jacocoInstrumentationTestReport(type: JacocoReport, dependsOn: ['createDebugCoverageReport']) {
tasks.register('jacocoInstrumentationTestReport', JacocoReport) {
dependsOn = ['createDebugCoverageReport']
group "Reporting"
description "Generate Jacoco coverage reports."
reports {

View File

@ -35,7 +35,7 @@
<issue id="InvalidPackage">
<ignore path="**simple-xml-2.7.1.jar" />
<ignore path="**javapoet-1.8.0.jar" />
<ignore path="**/org.jacoco.agent-0.8.10-runtime.jar" />
<ignore path="**/org.jacoco.agent-0.8.12-runtime.jar" />
<ignore regexp="kotlinx.coroutines.debug.AgentPremain" />
</issue>
<issue id="IconLocation">

View File

@ -28,5 +28,7 @@ task installGitHooks(type: Exec) {
}
afterEvaluate {
tasks['preBuild'].dependsOn installGitHooks
tasks.named('preBuild').configure {
dependsOn installGitHooks
}
}