From 77c131db9db8dc638f508cea1336830c5317c758 Mon Sep 17 00:00:00 2001 From: Edi Morales Date: Sat, 9 Mar 2024 20:01:49 -0600 Subject: [PATCH] Excludes UI components from Jacoco Reports coverage --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 1a419c3..385c95f 100644 --- a/build.gradle +++ b/build.gradle @@ -145,6 +145,14 @@ jacocoTestCoverageVerification { ] } } + afterEvaluate { + classDirectories.setFrom(files(classDirectories.files.collect { + fileTree(dir: it, exclude: [ + // Patterns to exclude + 'jpass/ui/**' + ]) + })) + } } distTar.enabled = false