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

Java: Modularize wrapper #81

Merged
merged 10 commits into from
Apr 5, 2024

Conversation

jonathanl-bq
Copy link

This change exposes the API package only using Java's new module system. It also updates the name of our JAR from "client" to "glide-client".

This requires the upgrading protobuf to the 4.26.0-rc2 release candidate, which fixes an issue where protobuf was not a modularized project (see protocolbuffers/protobuf#12639).

@jonathanl-bq jonathanl-bq marked this pull request as ready for review February 10, 2024 01:02
@acarbonetto acarbonetto self-assigned this Apr 4, 2024
Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

Should we update the README?
We should indicate that they need to install protoc >= 26.1, right?

@Yury-Fridlyand
Copy link

Why it triggers so much unrelated GHAs? npm-cd?

@jonathanl-bq
Copy link
Author

Why it triggers so much unrelated GHAs? npm-cd?

Yeah, I'm confused by this too. My change was okay when I updated protoc just for the Java workflow. But putting it in shared dependencies seems to be causing a lot of weird failures. I'm still looking into this, but would appreciate any help.

Copy link

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

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

Approval conditional that we check protoc version in the gradle build.

Copy link

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

I see odd CI didn't start, perhaps that was a glitch or so

// Line in format like: libprotoc 26.1
int majorVersion = java.lang.Integer.parseInt(output.split(" ")[1].split("\\.")[0].trim());
int minorVersion = java.lang.Integer.parseInt(output.split(" ")[1].split("\\.")[1].trim());
if (majorVersion < 26 || (majorVersion == 26 && minorVersion < 1)) {

Choose a reason for hiding this comment

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

Is it possible to get numbers from the dependency instead of hardcoded ones?

@jonathanl-bq jonathanl-bq merged commit d145d0f into java/integ_lotjonat_modules Apr 5, 2024
27 of 30 checks passed
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.

3 participants