diff --git a/nestsClient/build.gradle.kts b/nestsClient/build.gradle.kts index 4818c3915..52ee10adc 100644 --- a/nestsClient/build.gradle.kts +++ b/nestsClient/build.gradle.kts @@ -86,3 +86,13 @@ kotlin { } } } + +// Forward the nostrnests interop opt-in property from the Gradle JVM +// to test workers. Without this, `-DnestsInterop=true` on the Gradle +// command line never reaches `NostrNestsHarness.isEnabled()` (which +// reads it via `System.getProperty`), so every interop test silently +// skips. See `nestsClient/src/jvmTest/.../interop/NostrNestsHarness.kt`. +tasks.withType().configureEach { + System.getProperty("nestsInterop")?.let { systemProperty("nestsInterop", it) } + System.getProperty("nestsInteropRev")?.let { systemProperty("nestsInteropRev", it) } +}