From fcf1608099284ab5c3d4e46b3a0e4debef6171aa Mon Sep 17 00:00:00 2001 From: Kirill Kamakin Date: Fri, 3 Jun 2022 17:46:11 +0200 Subject: [PATCH] Specify includeNoLocationClasses in another way --- app/build.gradle | 6 ++++++ build.gradle | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7832b65..93a7947 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -72,6 +72,12 @@ android { testOptions { unitTests { includeAndroidResources = true + all { + jacoco { + includeNoLocationClasses = true + excludes = ['jdk.internal.*'] + } + } } } diff --git a/build.gradle b/build.gradle index 5d1530e..ba8a700 100644 --- a/build.gradle +++ b/build.gradle @@ -49,8 +49,4 @@ sonarqube { property "sonar.host.url", "https://sonarcloud.io" property "sonar.androidLint.reportPaths", "build/reports/lint-results-debug.xml" } -} - -rootCoverage { - includeNoLocationClasses true } \ No newline at end of file