From d5a685376ca29e5f4ecc81c9da30558ef797c4b1 Mon Sep 17 00:00:00 2001 From: meiron03 Date: Sun, 5 Nov 2023 13:48:47 -0500 Subject: [PATCH] edit jacoco --- PennMobile/build.gradle | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/PennMobile/build.gradle b/PennMobile/build.gradle index e1ba598d..b5b79cde 100644 --- a/PennMobile/build.gradle +++ b/PennMobile/build.gradle @@ -23,7 +23,6 @@ android { viewBinding true } compileSdkVersion 33 - buildToolsVersion '29.0.3' defaultConfig { minSdkVersion 26 targetSdkVersion 33 @@ -36,13 +35,6 @@ android { pickFirst 'META-INF/LICENSE.txt' pickFirst 'META-INF/NOTICE.txt' } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } - kotlinOptions { - jvmTarget = JavaVersion.VERSION_1_8 - } } dependencies { @@ -121,8 +113,10 @@ jacoco { toolVersion = "0.8.5" } +// https://stackoverflow.com/questions/68065743/cannot-run-gradle-test-tasks-because-of-java-lang-noclassdeffounderror-jdk-inte tasks.withType(Test) { - jacoco.includeNoLocationClasses = true + jacoco.includeNoLocationClasses = true + jacoco.excludes = ['jdk.internal.*'] } // Files with such regex patterns are to be excluded