Skip to content

fix(gradle): use globs for dependent task output files#34590

Merged
FrozenPandaz merged 1 commit intomasterfrom
feature/q-247-ensure-that-dependent-task-output-files-use-correct-path
Feb 25, 2026
Merged

fix(gradle): use globs for dependent task output files#34590
FrozenPandaz merged 1 commit intomasterfrom
feature/q-247-ensure-that-dependent-task-output-files-use-correct-path

Conversation

@lourw
Copy link
Contributor

@lourw lourw commented Feb 25, 2026

Current Behavior

When processing Gradle tasks, Nx tracks dependent task output files by recording individual file paths for each output. This can lead to incorrect cache invalidation behavior since we are prefixing the paths unnecessarily. We will therefore never match.

Expected Behavior

Nx now consolidates dependent task output files using glob patterns based on file extensions (e.g., **/.jar, **/.class). This focuses on the types of files produced rather than their specific paths. The approach groups all output files by extension and generates a single glob pattern per extension, reducing the complexity of input tracking while maintaining correctness.

Related Issue(s)

Fixes #Q-247

@lourw lourw self-assigned this Feb 25, 2026
@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit a14b2c8
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/699e98f245814e0008fa134c
😎 Deploy Preview https://deploy-preview-34590--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Feb 25, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit a14b2c8
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/699e98f23220550008813775
😎 Deploy Preview https://deploy-preview-34590--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Feb 25, 2026

View your CI Pipeline Execution ↗ for commit a14b2c8

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 11m 20s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 8s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-25 06:58:40 UTC

@FrozenPandaz FrozenPandaz merged commit 09c44a6 into master Feb 25, 2026
24 checks passed
@FrozenPandaz FrozenPandaz deleted the feature/q-247-ensure-that-dependent-task-output-files-use-correct-path branch February 25, 2026 20:02
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
## Current Behavior

When processing Gradle tasks, Nx tracks dependent task output files by
recording individual file paths for each output. This can lead to
incorrect cache invalidation behavior since we are prefixing the paths
unnecessarily. We will therefore never match.

## Expected Behavior

Nx now consolidates dependent task output files using glob patterns
based on file extensions (e.g., **/*.jar, **/*.class). This focuses on
the types of files produced rather than their specific paths. The
approach groups all output files by extension and generates a single
glob pattern per extension, reducing the complexity of input tracking
while maintaining correctness.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #Q-247

(cherry picked from commit 09c44a6)
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
## Current Behavior

When processing Gradle tasks, Nx tracks dependent task output files by
recording individual file paths for each output. This can lead to
incorrect cache invalidation behavior since we are prefixing the paths
unnecessarily. We will therefore never match.

## Expected Behavior

Nx now consolidates dependent task output files using glob patterns
based on file extensions (e.g., **/*.jar, **/*.class). This focuses on
the types of files produced rather than their specific paths. The
approach groups all output files by extension and generates a single
glob pattern per extension, reducing the complexity of input tracking
while maintaining correctness.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #Q-247

(cherry picked from commit 09c44a6)
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants