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

upgrade to Gradle 7.2 #7070

Merged
merged 22 commits into from
Oct 15, 2021
Merged

upgrade to Gradle 7.2 #7070

merged 22 commits into from
Oct 15, 2021

Conversation

jrhizor
Copy link
Contributor

@jrhizor jrhizor commented Oct 15, 2021

closes #4006

@welly87 tracked down where we needed to handle DuplicatesStrategy in #4006 (comment) ! Thank you @welly87 !

todo:

  • verify this is working for platform builds
  • verify build times are similar to current on Github
  • verify this is working for connector builds
  • close upgrade to gradle 7.0 #2843
  • inject CI gradle properties in home directory
  • fix implicit dependency warning explosion (a few still exist, but those are actual warnings)

@github-actions github-actions bot added the area/connectors Connector related issues label Oct 15, 2021
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 04:28 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 04:43 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 04:57 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 04:59 Inactive
@jrhizor
Copy link
Contributor Author

jrhizor commented Oct 15, 2021

Well this is going to be easy...

Screen Shot 2021-10-14 at 10 11 08 PM

@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 16:49 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:02 Inactive
@jrhizor
Copy link
Contributor Author

jrhizor commented Oct 15, 2021

reverting the spotless upgrade since it actually breaks the format of some of the airbyte-scheduler/persistence/src/main/resources/job_history_purge.sql file.

@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:17 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:23 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:26 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:42 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 17:48 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 18:03 Inactive
@jrhizor
Copy link
Contributor Author

jrhizor commented Oct 15, 2021

Everything is building!!!

I would like to clean up the warnings though, they're super noisy.

@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 19:12 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 19:25 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 19:54 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 19:58 Inactive
@@ -15,16 +19,18 @@ import java.nio.file.Paths

@CacheableTask
abstract class AirbyteDockerTask extends DefaultTask {
@Input
@Internal
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used for the Docker hash tracking. Since this is a non-standard caching-related input, all subprojects that do airbyteDocker use this. If it's treated as an input we get a ton of implicit dependency warnings. Since it's actually an internal value not an input, we can change this here and remove the warnings. The value is still used for the up to date check so the behavior should be the same.

@@ -97,6 +97,16 @@ jobs:
- name: Install Pyenv
run: python3 -m pip install virtualenv==16.7.9 --user

- name: Set up CI Gradle Properties
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these override the github gradle properties and increases use allocation for CI only

@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 20:10 Inactive
@jrhizor jrhizor temporarily deployed to more-secrets October 15, 2021 20:35 Inactive
@jrhizor jrhizor marked this pull request as ready for review October 15, 2021 21:03
@jrhizor jrhizor merged commit 1b59228 into master Oct 15, 2021
@jrhizor jrhizor deleted the jrhizor/gradle72 branch October 15, 2021 21:03
schlattk pushed a commit to schlattk/airbyte that referenced this pull request Jan 4, 2022
* upgrade to gradle 7.2

* get build working with gradle 7.2

* fix build

* fix connector build?

* EXCLUDE distTar and switch includes to excludes

* switch back to includes

* temporarily try to adjust properties

* don't know why this was modified

* revert spotless upgrade

* upgrade gradle node (better arm support it says)

* add back in Xss since we are getting StackOverflowError without it

* revert bad spotless fmt

* fix acceptance tests duplicates strategy

* add zip for jdbc includes

* check if this helps for java connectors

* remove accidental commit

* remove redundant

* fix warning explosion

* oops

* override gradle.properties

* remove set-env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade to Gradle 7
2 participants