Skip to content

Conversation

@matifali
Copy link
Member

@matifali matifali commented Nov 12, 2025

Fixes deprecated Maven config flags in jfrog-oauth and jfrog-token modules
closes #534

Done using GitHub Copilot.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the JFrog CLI Maven configuration to replace the deprecated --repo-resolve flag with the newer --repo-resolve-releases and --repo-resolve-snapshots flags in both the jfrog-oauth and jfrog-token modules.

  • Replaces deprecated --repo-resolve flag with separate flags for releases and snapshots
  • Updates Maven configuration to use the same repository for both releases and snapshots

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
registry/coder/modules/jfrog-token/run.sh Updates Maven configuration command to use --repo-resolve-releases and --repo-resolve-snapshots flags
registry/coder/modules/jfrog-oauth/run.sh Updates Maven configuration command to use --repo-resolve-releases and --repo-resolve-snapshots flags
Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matifali

the only issue I see with this is there is no way to configure these repo's independently. This would make it work in the mean-time, but it might be good to change this to allow someone to provide seperate repo url's for release, and snapshot artifacts.

Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't care about the above because it essentially retains the previous functionality we are good but we need to bump the versions

@DevelopmentCats
Copy link
Contributor

this should be good now I have tested it as well

@matifali matifali added the version:patch Add to PRs requiring a patch version upgrade label Nov 13, 2025
@coder coder deleted a comment from github-actions bot Nov 13, 2025
@DevelopmentCats DevelopmentCats changed the title fix(jfrog): replace deprecated --repo-resolve flag for Maven config fix(jfrog): replace deprecated --repo-resolve flag for Maven and correct oauth username extraction Nov 13, 2025
github-actions bot and others added 6 commits November 14, 2025 08:07
…nfig Replace deprecated --repo-resolve with --repo-resolve-releases and --repo-resolve-snapshots for jf mvn-config command. Verified with JFrog CLI v2.82.0.
…nfig Same fix as jfrog-oauth - replace --repo-resolve with --repo-resolve-releases and --repo-resolve-snapshots.
Update test expectations to check for separate --repo-resolve-releases and --repo-resolve-snapshots flags instead of deprecated --repo-resolve.
@DevelopmentCats DevelopmentCats changed the title fix(jfrog): replace deprecated --repo-resolve flag for Maven and correct oauth username extraction fix(jfrog): replace deprecated --repo-resolve flag for Maven Nov 14, 2025
Copy link

@bjornrobertsson bjornrobertsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good, I see the --repo* and --server-id* are extended over the minimum needed (i.e. from the proposed addition needed by end-user)

@phorcys420 phorcys420 merged commit 8add161 into main Nov 17, 2025
4 checks passed
@phorcys420 phorcys420 deleted the fix/jfrog-mvnc-args branch November 17, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Add to PRs requiring a patch version upgrade

4 participants