feat(python): add uv path settings and bump java client (TC-3860)#257
Conversation
|
/review |
Code Review by Qodo
1. Unresolvable SNAPSHOT dependency
|
Review Summary by QodoAdd uv path settings and bump java client dependencies
WalkthroughsDescription• Add uv executable path setting to settings UI with file browser • Propagate uv path via TRUSTIFY_DA_UV_PATH system property • Bump trustify-da-java-client to 0.0.17-SNAPSHOT for uv support • Bump trustify-da-api-spec to 2.0.7 for compatibility Diagramflowchart LR
A["Settings UI"] -->|"Add uv path field"| B["ApiSettingsComponent"]
B -->|"Get/Set uv path"| C["ApiSettingsConfigurable"]
C -->|"Persist uv path"| D["ApiSettingsState"]
D -->|"Set system property"| E["ApiService"]
E -->|"TRUSTIFY_DA_UV_PATH"| F["Java Client"]
G["gradle/libs.versions.toml"] -->|"Bump versions"| F
File Changes1. src/main/java/org/jboss/tools/intellij/exhort/ApiService.java
|
Code Review by Qodo
1. uv setting always modified
|
| trustify-da-api-spec = "2.0.7" | ||
| trustify-da-java-client = "0.0.17-SNAPSHOT" |
There was a problem hiding this comment.
1. Unresolvable snapshot dependency 🐞 Bug ☼ Reliability
The build now depends on io.github.guacsec:trustify-da-java-client:0.0.17-SNAPSHOT, but the Gradle repositories configuration does not include any snapshot repository, so dependency resolution will fail on clean machines/CI (unless the artifact happens to be present in mavenLocal()).
Agent Prompt
### Issue description
`trustify-da-java-client` is set to `0.0.17-SNAPSHOT`, but the build does not declare any snapshot repository, so the dependency will not resolve in CI/clean environments.
### Issue Context
The build currently uses `mavenLocal()`, `mavenCentral()`, IntelliJ default repositories, and JitPack. None of these are a general-purpose snapshot repository for `io.github.guacsec` artifacts.
### Fix Focus Areas
- gradle/libs.versions.toml[6-7]
- build.gradle.kts[24-31]
### Suggested fix
Do one of:
1) Prefer a released/non-SNAPSHOT version of `trustify-da-java-client`, OR
2) Add the appropriate snapshot repository hosting `io.github.guacsec` snapshots to `repositories { ... }` (ideally with `content { includeGroup("io.github.guacsec") }` to scope it).
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
[sdlc-workflow/verify-pr] Classified as suggestion — the SNAPSHOT dependency is intentional for development; mavenLocal() is configured in build.gradle.kts and CI checks pass. For release, this will be updated to a released version. No sub-task created.
Verification Report for TC-3860 (commit 47cd01e)
Acceptance Criteria Detail
Overall: WARNTwo gaps inherited from upstream PR #244 (not regressions in this PR):
These should be fixed in a follow-up commit on this branch or a separate PR. This comment was AI-generated by sdlc-workflow/verify-pr v0.5.11. |
ruromero
left a comment
There was a problem hiding this comment.
The docs have not been updated
Add uv executable path setting to the settings UI with TRUSTIFY_DA_UV_PATH system property propagation. Bump trustify-da-java-client to 0.0.17-SNAPSHOT and api-spec to 2.0.7 for pip report-based pyproject.toml support and uv provider. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Document the new TRUSTIFY_DA_UV_PATH setting in the Python configuration section and system properties list. Update trustify-da-java-client from 0.0.17-SNAPSHOT to released 0.0.17. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|



Summary
TRUSTIFY_DA_UV_PATHsystem property propagationtrustify-da-java-clientfrom 0.0.15 to 0.0.17-SNAPSHOT for pip report-based pyproject.toml support and uv providertrustify-da-api-specfrom 2.0.2 to 2.0.7 to match java client dependencyTest plan
TRUSTIFY_DA_UV_PATHsystem property is setpyproject.tomlwithuv.lockpresent → verify uv provider is usedpyproject.tomlwithoutuv.lock→ verify pip fallback workspyproject.tomlwith complex deps (extras, markers) → verify red lines appearrequirements.txtfunctionality unchanged🤖 Generated with Claude Code