1 parent a3169e0 commit 52b4c11Copy full SHA for 52b4c11
1 file changed
build.gradle.kts
@@ -8,6 +8,8 @@ plugins {
8
java
9
id("io.freefair.lombok") version "8.0.1" // Lombok plugin for Gradle
10
id("com.adarshr.test-logger") version "4.0.0"
11
+ id("jacoco")
12
+ id("org.sonarqube") version "3.5.0.2730" // Use the latest version
13
}
14
15
repositories {
@@ -103,3 +105,11 @@ tasks {
103
105
options.compilerArgs.add("-parameters") // Optional: Enables parameter names in reflection
104
106
107
108
+
109
+tasks.withType<JacocoReport> {
110
+ classDirectories.setFrom(
111
+ sourceSets.main.get().output.asFileTree.matching {
112
+// exclude("org/example/B.class")
113
+ }
114
+ )
115
+}
0 commit comments