diff --git a/core/data-jvm/build.gradle.kts b/core/data-jvm/build.gradle.kts index 6c0f6e2..5da54ef 100644 --- a/core/data-jvm/build.gradle.kts +++ b/core/data-jvm/build.gradle.kts @@ -88,7 +88,11 @@ tasks.register("smoke") { description = "Opens a JVM ObjectBox store through the shared data layer." classpath = sourceSets["main"].runtimeClasspath mainClass.set("org.incido.data.jvm.StoreSmokeKt") - args = listOf(layout.buildDirectory.dir("data-jvm-smoke").get().asFile.absolutePath) + val smokeDir = layout.buildDirectory.dir("data-jvm-smoke").get().asFile + args = listOf(smokeDir.absolutePath) + // The probe asserts exact note counts, so it needs a virgin library — + // wipe the directory here to keep `smoke` idempotent across runs. + doFirst { smokeDir.deleteRecursively() } } /**