Commit a4d701e
Fix :buildSrc:test by resolving Linux arm64 platform check lazily
BuildPlatform relies on Gradle's native services, which are unavailable
when configuring tasks under ProjectBuilder in unit tests. Evaluating
project.isLinuxArm64() eagerly during test-task configuration made
TestJvmConstraintsPluginTest fail with NativeIntegrationUnavailableException.
Defer the check to execution time via the existing lazy additionalCondition
on ProvideJvmArgsOnJvmLauncherVersion, keeping it out of the configuration path.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1e66139 commit a4d701e
1 file changed
Lines changed: 5 additions & 6 deletions
File tree
- buildSrc/src/main/kotlin/datadog/gradle/plugin/testJvmConstraints
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
0 commit comments