Skip to content

Migrate to the same Json Schema Generation Plugin. - #59722

Merged
Davin Chia (davinchia) merged 5 commits into
masterfrom
davinchia/migrate-to-one-json-schema
May 8, 2025
Merged

Davin Chia (davinchia) merged 5 commits into
masterfrom
davinchia/migrate-to-one-json-schema

Conversation

@davinchia

@davinchia Davin Chia (davinchia) commented May 8, 2025 •

Copy link
Copy Markdown
Contributor

What

These two sources today use different json schema generation plugins from:

  1. The general Airbyte Gradle Plugins.
  2. The old CDK

This is causing issues when using the Plugins in the new flow here: #59716.

[Incubating] Problems report is available at: file:///home/runner/work/airbyte/airbyte/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':airbyte-integrations:connectors:source-***:generateJsonSchema2Pojo'.

> Method org/jsonschema2pojo/gradle/JsonSchemaExtension.getTargetLanguage()Lorg/jsonschema2pojo/Language; is abstract
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

Instead migrate both of these sources onto the same plugin provider and version.

How

  • Migrate both over from org.jsonschema2pojo to com.github.eirnym.js2p.
  • I also added what seems to be a missing task dependency. I'm not sure why this was never caught before. This is showing up in master as well.

Review guide

All files.

This should be a no-op change since I don't see any change in the generated files so I didn't publish a new version.

I am happy to publish a new version for each connector if people want me to.

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@vercel

vercel Bot commented May 8, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 8, 2025 5:28pm

@github-actions

github-actions Bot commented May 8, 2025 •

Copy link
Copy Markdown
Contributor

source-postgres Connector Test Results

134 tests   133 ✅  3m 12s ⏱️
 20 suites    1 💤
 22 files      0 ❌
  2 errors

For more details on these parsing errors, see this check.

Results for commit 36a9883.

♻️ This comment has been updated with latest results.

@davinchia Davin Chia (davinchia) changed the title Davinchia/migrate to one json schema Migrate to the same Json Schema Generation Plugin. May 8, 2025
@github-actions

github-actions Bot commented May 8, 2025 •

Copy link
Copy Markdown
Contributor

source-singlestore Connector Test Results

74 tests   54 ✅  7m 32s ⏱️
 5 suites   0 💤
 5 files    20 ❌

For more details on these failures, see this check.

Results for commit 36a9883.

♻️ This comment has been updated with latest results.

@davinchia
Davin Chia (davinchia) marked this pull request as ready for review May 8, 2025 01:25
@davinchia
Davin Chia (davinchia) requested a review from a team as a code owner May 8, 2025 01:25
@davinchia Davin Chia (davinchia) mentioned this pull request May 8, 2025
1 of 2 tasks

@burakku Wenqi Hu (burakku) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-04-22 at 11 48 08 AM

@davinchia
Davin Chia (davinchia) enabled auto-merge (squash) May 8, 2025 17:33
@davinchia

Davin Chia (davinchia) commented May 8, 2025 •

Copy link
Copy Markdown
Contributor Author

Note: the beta CI failures can be ignored.

@davinchia
Davin Chia (davinchia) merged commit 6eb6f1e into master May 8, 2025
@davinchia
Davin Chia (davinchia) deleted the davinchia/migrate-to-one-json-schema branch May 8, 2025 17:41
Yarden Carmeli (yardencarmeli) pushed a commit that referenced this pull request May 21, 2025
These two sources today use different json schema generation plugins from:

The general Airbyte Gradle Plugins.
The old CDK
This is causing issues when using the Plugins in the new flow here: #59716.

[Incubating] Problems report is available at: file:///home/runner/work/airbyte/airbyte/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':airbyte-integrations:connectors:source-***:generateJsonSchema2Pojo'.

> Method org/jsonschema2pojo/gradle/JsonSchemaExtension.getTargetLanguage()Lorg/jsonschema2pojo/Language; is abstract
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

Instead migrate both of these sources onto the same plugin provider and version.

- Migrate both over from org.jsonschema2pojo to com.github.eirnym.js2p.
- I also added what seems to be a missing task dependency. I'm not sure why this was never caught before. This is showing up in master as well.

This branch was successfully deployed

1 active deployment
Preview — 36a98839 Deployed May 8, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants