Skip to content

gradle: add kotlin support in all projects, warnings as errors #36018

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

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

postamar
Copy link
Contributor

Gradle sometimes whines that the kotlin plugin is being applied separately in the java cdk and in the connectors and that bad things might happen. This PR fixes this to make for a good clean build.

The kotlin compiler is set up slightly differently to before:

  • -Xjvm-default=all allows compiling concrete methods in kotlin interfaces as default methods in java interfaces; this is useful for java interop.
  • allWarningsAsErrors = true makes the compilation fail on warnings just like we do for java.
  • Support test fixtures.

This required adding a few annotations in some connectors. None of these changes warrant a CDK or a connector release.

@postamar postamar requested review from a team as code owners March 13, 2024 14:54
Copy link

vercel bot commented Mar 13, 2024

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

1 Ignored Deployment
Name Status Preview Updated (UTC)
airbyte-docs ⬜️ Ignored (Inspect) Mar 13, 2024 2:54pm

Copy link
Contributor

@jdpgrailsdev jdpgrailsdev left a comment

Choose a reason for hiding this comment

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

:shipit:

@postamar
Copy link
Contributor Author

/approve-and-merge reason="changes to java cdk or connectors are insignificant and don't warrant release"

@octavia-approvington
Copy link
Contributor

This code is at peace with itself
imagine karate kid approving

@octavia-approvington octavia-approvington merged commit ef473c5 into master Mar 13, 2024
36 of 43 checks passed
@octavia-approvington octavia-approvington deleted the postamar/top-level-kotlin-support branch March 13, 2024 15:56
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.

5 participants