diff --git a/build.gradle b/build.gradle index 5063eec..61e0e2e 100644 --- a/build.gradle +++ b/build.gradle @@ -57,15 +57,7 @@ loom { }) } -configurations { - mockitoAgent -} - dependencies { - mockitoAgent(libs.mockito.core) { - transitive = false - } - // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" mappings loom.layered { @@ -87,15 +79,11 @@ dependencies { testImplementation libs.junit.jupiter testImplementation sourceSets.testmod.output testImplementation libs.assertj.core - testImplementation libs.mockito.core } tasks { test { useJUnitPlatform() - doFirst { - jvmArgs += ["-javaagent:${configurations.mockitoAgent.asPath}", "-Xshare:off"] - } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 08506a1..3708253 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -6,7 +6,6 @@ junit-bom = { module = "org.junit:junit-bom", version = "5.11.4" } junit-jupiter = { module = "org.junit.jupiter:junit-jupiter" } junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher" } assertj-core = { module = "org.assertj:assertj-core", version = "3.26.3" } -mockito-core = { module = "org.mockito:mockito-core", version = "5.14.2" } [plugins] fabric-loom = { id = "fabric-loom", version = "1.16.1" }