diff --git a/TP4/build.gradle.kts b/TP4/build.gradle.kts index adcbf202343bf844e7df0cb50084db8edfd49b6a..3df5aa1535e99d04314a7adfe72483a6732b8269 100644 --- a/TP4/build.gradle.kts +++ b/TP4/build.gradle.kts @@ -2,6 +2,7 @@ plugins { id("java") id("application") id("pmd") + id("com.github.spotbugs") version "6.1.3" } repositories { @@ -13,6 +14,9 @@ dependencies { testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4") testRuntimeOnly("org.junit.platform:junit-platform-launcher") testImplementation("org.assertj:assertj-core:3.27.0") + + + } tasks.test { @@ -28,7 +32,9 @@ pmd { ruleSets = listOf("rulesets/java/quickstart.xml", "category/java/errorprone.xml", "category/java/bestpractices.xml") } - +spotbugs { + toolVersion = "4.9.0" +} application { mainClass.set("Main")