Skip to content

fix(gradle): handle custom build gradle files#31817

Merged
FrozenPandaz merged 1 commit intomasterfrom
feature/nxc-2782-the-gradle-plugin-is-not-working-properly-in-the-spring
Jul 3, 2025
Merged

fix(gradle): handle custom build gradle files#31817
FrozenPandaz merged 1 commit intomasterfrom
feature/nxc-2782-the-gradle-plugin-is-not-working-properly-in-the-spring

Conversation

@xiongemi
Copy link
Copy Markdown
Contributor

@xiongemi xiongemi commented Jul 3, 2025

Current Behavior

for spring-framework

rootProject.children.each {project ->
	project.buildFileName = "${project.name}.gradle"
}

it got custom build file name

Expected Behavior

  • change nxProjectGraph plugin, add buildFiles in the output json like:
{
  "nodes": {},
...
  "buildFiles": ["build.gradle"]
}

then, it get the build files from reports, combine build files from build.gradle and custom build files from reports.

    const allBuildFiles = Array.from(
      new Set([...buildFilesFromSplitConfigFiles, ...buildFiles])
    );

Related Issue(s)

Fixes #

@xiongemi xiongemi requested review from a team, FrozenPandaz and MaxKless as code owners July 3, 2025 05:10
@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 3, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Jul 3, 2025 5:14am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Jul 3, 2025

View your CI Pipeline Execution ↗ for commit 973e4db

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 11m 6s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 4s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 3s View ↗
nx documentation ✅ Succeeded 3m 8s View ↗

☁️ Nx Cloud last updated this comment at 2025-07-03 05:29:58 UTC

@FrozenPandaz FrozenPandaz merged commit 2a0153e into master Jul 3, 2025
8 checks passed
@FrozenPandaz FrozenPandaz deleted the feature/nxc-2782-the-gradle-plugin-is-not-working-properly-in-the-spring branch July 3, 2025 14:49
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 9, 2025

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 Jul 9, 2025
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