From 064a1e28dfc1a2edd5fc9b9b24498db5a9812f67 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Thu, 16 Jul 2026 10:50:28 -0300 Subject: [PATCH] W-23475822 fix(build): declare nativeCompile output directory for up-to-date checks The GraalVM nativeCompile task did not declare its output directory, so Gradle could not reliably compute up-to-date status or resolve the native artifacts across projects. Declare outputs.dir on every nativeCompile task in subprojects so incremental builds and cross-project dependency resolution work correctly. Extracted from the native-bindings branch (feat/new-native-bindings) as an independent build-correctness fix. Co-Authored-By: Claude Opus 4.8 (1M context) --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 944d683..d58f138 100644 --- a/build.gradle +++ b/build.gradle @@ -59,4 +59,10 @@ subprojects { dependencies { implementation "org.scala-lang:scala-library:${scalaVersion}" } + + // Ensure nativeCompile tasks declare their output directories for proper + // Gradle up-to-date checks and cross-project dependency resolution + tasks.matching { it.name == 'nativeCompile' }.configureEach { t -> + t.outputs.dir("${project.buildDir}/native/nativeCompile") + } } \ No newline at end of file