Skip to content

fix(gradle): fix gradle tests#30879

Merged
FrozenPandaz merged 1 commit intomasterfrom
fix-gradle-test
May 8, 2025
Merged

fix(gradle): fix gradle tests#30879
FrozenPandaz merged 1 commit intomasterfrom
fix-gradle-test

Conversation

@xiongemi
Copy link
Copy Markdown
Contributor

@xiongemi xiongemi commented Apr 25, 2025

Current Behavior

currently, because it requires to sign locally, so i thought run command like
:project-graph:publishToMavenLocal -x :project-graph:signNxProjectGraphPluginPluginMarkerMavenPublication -x :project-graph:signPluginMavenPublication -x :project-graph:publishNxProjectGraphPluginPluginMarkerMavenPublicationToMavenLocal -x :project-graph:publishPluginMavenPublicationToMavenLocal would publish the plugin locally, but it actually does not. it does not throw an error, but does not do anything at all.
so for e2e tests, it is actually pulling the latest published gradle plugin from maven rather than test local code, hence the e2e errors.

also, currently project graph build for java version 21, we change it to java 17 to be used by ocean repo.

Expected Behavior

change the command to ./gradlew :project-graph:publishToMavenLocal -PskipSign=true and not apply signing when skip sign is true, so this should be able to publish plugin to local repository.

work with java 17

Related Issue(s)

Fixes #

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 7, 2025 5:12am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 25, 2025

View your CI Pipeline Execution ↗ for commit 722ef22.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 9m 53s 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 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded 1m 36s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-07 05:26:39 UTC

@xiongemi xiongemi requested review from a team and vsavkin as code owners April 25, 2025 18:32
@xiongemi xiongemi force-pushed the fix-gradle-test branch 3 times, most recently from 9c78603 to 96ea274 Compare May 1, 2025 04:51
@xiongemi xiongemi force-pushed the fix-gradle-test branch from 96ea274 to 722ef22 Compare May 7, 2025 05:10
@FrozenPandaz FrozenPandaz merged commit f339a1a into master May 8, 2025
6 checks passed
@FrozenPandaz FrozenPandaz deleted the fix-gradle-test branch May 8, 2025 21:29
@github-actions
Copy link
Copy Markdown
Contributor

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 May 14, 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