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

THRIFT-5553: java library to use newer gradle API #2561

Merged
merged 4 commits into from
May 8, 2022

Conversation

jimexist
Copy link
Member

@jimexist jimexist commented Apr 12, 2022

java library to use newer gradle API, fixing most deprecation warning generated by ./gradlew help --scan

  • Did you create an Apache Jira ticket? (not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include [skip ci] anywhere in the commit message to free up build resources.

@jimexist jimexist changed the title java library to use newer gradle API THRIFT-5553: java library to use newer gradle API Apr 12, 2022
@jimexist jimexist force-pushed the use-newer-gradle-api branch 8 times, most recently from c0045be to 6f4f7e9 Compare April 17, 2022 02:00
Copy link
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

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

I don't know gradle, but I don't see anything particularly problematic in this PR.

@jimexist
Copy link
Member Author

i'm not sure i can debug the CI failures - seems an issue with travis itself as the failures do not have logs and they occur randomly (same situation with other pull requests)

@ctubbsii
Copy link
Member

i'm not sure i can debug the CI failures - seems an issue with travis itself as the failures do not have logs and they occur randomly (same situation with other pull requests)

I don't think those failures are related to this change, but I can't be sure. The individual tasks aren't well named and I'm not sure what they're doing.

Also, somebody familiar with the Travis CI configuration might want to investigate moving over to GitHub Actions, since 1) it's built-in to GitHub and possibly a bit more reliable/less dependencies on another party, and 2) I don't trust Travis CI's new permissions model that seems to require granting it oauth permissions for private repos in order to log in to Travis-CI.com to manage builds, even if you only want to use it with public repos. I wonder if that was partially the reason for this recent security incident involving Travis CI app being targeted and used as a mechanism to steal private repo contents

I know one of the main limits of GitHub Actions is the inability to use ARM or other non-x86 architectures when building. As a Java developer I don't generally care about that, but I'm guessing the Thrift project probably cares.

@jimexist
Copy link
Member Author

i'm not sure i can debug the CI failures - seems an issue with travis itself as the failures do not have logs and they occur randomly (same situation with other pull requests)

I don't think those failures are related to this change, but I can't be sure. The individual tasks aren't well named and I'm not sure what they're doing.

Also, somebody familiar with the Travis CI configuration might want to investigate moving over to GitHub Actions, since 1) it's built-in to GitHub and possibly a bit more reliable/less dependencies on another party, and 2) I don't trust Travis CI's new permissions model that seems to require granting it oauth permissions for private repos in order to log in to Travis-CI.com to manage builds, even if you only want to use it with public repos. I wonder if that was partially the reason for this recent security incident involving Travis CI app being targeted and used as a mechanism to steal private repo contents

I know one of the main limits of GitHub Actions is the inability to use ARM or other non-x86 architectures when building. As a Java developer I don't generally care about that, but I'm guessing the Thrift project probably cares.

I agree with that GitHub Actions more user friendly and efficient. If that's a direction that the community wishes to move towards I'd be able to help.

@ctubbsii
Copy link
Member

I agree with that GitHub Actions more user friendly and efficient. If that's a direction that the community wishes to move towards I'd be able to help.

That would be great. I think they could replace AppVeyor as well.

@jimexist jimexist force-pushed the use-newer-gradle-api branch from 6f4f7e9 to 9204ced Compare April 19, 2022 00:54
@jimexist
Copy link
Member Author

I agree with that GitHub Actions more user friendly and efficient. If that's a direction that the community wishes to move towards I'd be able to help.

That would be great. I think they could replace AppVeyor as well.

Let me create https://issues.apache.org/jira/browse/THRIFT-5564 and wait for some more feedback if any.

@jimexist jimexist force-pushed the use-newer-gradle-api branch from 0a7f351 to 897aca1 Compare April 28, 2022 07:27
@jimexist
Copy link
Member Author

FYI i also had to update tutorial/js and tutorial/java since their ant build refers to the legacy java libs

@ctubbsii
Copy link
Member

ctubbsii commented May 6, 2022

@jimexist I merged master into this one to bring it up to date. I ran a gradle build and it seems to work fine with Gradle 6.9.2. However, it still shows a warning that Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

@jimexist
Copy link
Member Author

jimexist commented May 6, 2022

However, it still shows a warning that Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

yes because we still have one thing left: migrate maven plugin to maven-publish plugin. that's a bigger task to handle so i'll do it later, along with upgrading to gradle 7.x

Copy link
Member

@ctubbsii ctubbsii left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Will wait for CI. In the meantime, @jimexist , please make sure that there wasn't any errors introduced while resolving merge conflicts, and that this is still ready to go.

@jimexist
Copy link
Member Author

jimexist commented May 7, 2022

Looks fine to me. Will wait for CI. In the meantime, @jimexist , please make sure that there wasn't any errors introduced while resolving merge conflicts, and that this is still ready to go.

thanks! confirmed on my side that this is 👍

@jimexist
Copy link
Member Author

jimexist commented May 7, 2022

However, it still shows a warning that Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.

yes because we still have one thing left: migrate maven plugin to maven-publish plugin. that's a bigger task to handle so i'll do it later, along with upgrading to gradle 7.x

I've put up:

@ctubbsii ctubbsii merged commit eb62fa8 into apache:master May 8, 2022
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.

2 participants