Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven version expanded #794

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

knarukulla
Copy link
Contributor

@knarukulla knarukulla commented Nov 21, 2022

Issue: #618

Solution:

Expand maven version using bazel variables to publishing maven artifact to repo.
bazel run --stamp
--define "maven_repo=<>
--define "maven_user=<>"
--define "maven_password=<>"
--define "maven_version=<>"
//src/main/java/com/xxx/example:

@google-cla
Copy link

google-cla bot commented Nov 21, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@knarukulla
Copy link
Contributor Author

@cheister could you please review my PR? and also how can i get past the pipeline errors

@cj81499
Copy link

cj81499 commented Dec 7, 2022

@knarukulla have you signed the CLA? I imagine that @cheister may be waiting until that's done before reviewing.

@cheister cheister requested a review from shs96c December 7, 2022 19:51
Copy link
Collaborator

@shs96c shs96c left a comment

Choose a reason for hiding this comment

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

expand_make_variables is marked as deprecated, but I can see this being useful since we don't actually know the variables we are replacing. LGTM.

Thank you for the PR!

@shs96c shs96c merged commit 95239a6 into bazelbuild:master Dec 8, 2022
@hisener
Copy link
Contributor

hisener commented Jan 24, 2023

👋 Hi @shs96c, is there a plan to cut a new release soon? I am interested in this change to (partially) replace the solution in #618 (comment).

However, I have two questions related to this change:

  1. If we start using maven_coordinates = "com.datadog.foo:$(maven_version), will this tag be inaccurate since we don't replace the variable in
    maven_coordinates_tags = ["maven_coordinates=%s" % maven_coordinates]
  2. Do we also need to call in expand_make_variables in maven_bom_fragment?
    coordinates = ctx.attr.maven_coordinates,

@shs96c
Copy link
Collaborator

shs96c commented Jan 24, 2023

We probably do need to expand the tag in maven_bom_fragment too. Good catches.

@shs96c
Copy link
Collaborator

shs96c commented Jan 24, 2023

We are working on the next release too: #831

@hisener
Copy link
Contributor

hisener commented Jan 24, 2023

We probably do need to expand the tag in maven_bom_fragment too. Good catches.

I can file a PR for the maven_bom_fragment rule, but not sure what to do about the tag since it's in the java_export macro.

@shs96c
Copy link
Collaborator

shs96c commented Jan 31, 2023

I can take a look at that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants