-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement PerfBackgroundJsonValidation feature-flag (#21569)
builds on add perf feature-flag; ensure compatability with LaunchDarkly (LDv5) users #21534 add support for checking the PerfBackgroundJsonValidation feature-flag within the RecordSchemaValidator class I spent a lot of time with trying to get the Kotlin beans injectable into the java code. What should just work doesn't and it well documented on the Micronaut side as to what exactly is required (or at least I never found the documentation). After many attempts I and looking at the auto-generated kotlin Micronaut projects I landed on kapt being necessary in kotlin projects. Even this isn't entirely true. If the Kotlin project is defined with the following gradle setup, the beans will not be visible to java projects (and possibly other projects as well): plugins { kotlin("jvm") version "1.8.0" } dependencies { annotationProcessor(platform(libs.micronaut.bom)) annotationProcessor(libs.bundles.micronaut.annotation.processor) } But they will be visible with the following setup: plugins { kotlin("jvm") version "1.8.0" id("io.micronaut.minimal.application") version "3.7.0" } dependencies { annotationProcessor(platform(libs.micronaut.bom)) annotationProcessor(libs.bundles.micronaut.annotation.processor) } micronaut { version("3.8.2") } and also visible with the following setup: plugins { kotlin("jvm") version "1.8.0" kotlin("kapt") version "1.8.0" } dependencies { kapt(platform(libs.micronaut.bom)) kapt(libs.bundles.micronaut.annotation.processor) } I went with the kapt solution. It's worth noting that kapt is deprecated and is being replaced with kps in Micronaut 4 (this is a good thing). --------- Co-authored-by: Davin Chia <davinchia@gmail.com>
- Loading branch information
1 parent
e9d8b7a
commit e32215f
Showing
23 changed files
with
228 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.