Skip to content

Commit

Permalink
Improved the tasks according to the new gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper authored and kelson42 committed Aug 16, 2024
1 parent 0b4bc66 commit 8cd58a8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/plugin/AllProjectConfigurer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AllProjectConfigurer {

buildTypes {
getByName("debug") {
isTestCoverageEnabled = false
isTestCoverageEnabled = true
multiDexEnabled = true
}
}
Expand Down
5 changes: 3 additions & 2 deletions jacoco.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lintConfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
4 changes: 3 additions & 1 deletion team-props/git-hooks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ task installGitHooks(type: Exec) {
}

afterEvaluate {
tasks['preBuild'].dependsOn installGitHooks
tasks.named('preBuild').configure {
dependsOn installGitHooks
}
}

0 comments on commit 8cd58a8

Please sign in to comment.