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

micronaut framework implemented. #673

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

anilcangul
Copy link

micronaut example created
micronaut starter created

Copy link
Collaborator

@osoykan osoykan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

This PR does not build and compile. Could you please apply the changes, and the open the project from settings.gradle.kts level. I observe gradle-wrapper additions which should not be case for any change.

Also instead of micronaut-starter, lets keep micronaut as the name for the folder.

build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
examples/micronaut-example/build.gradle.kts Outdated Show resolved Hide resolved
examples/micronaut-example/build.gradle.kts Outdated Show resolved Hide resolved
examples/micronaut-example/build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
build.gradle.kts Outdated Show resolved Hide resolved
detektPlugins(libs.detekt.formatting)
}

spotless {
kotlin {
ktlint(libs.versions.ktlint.get()).setEditorConfigPath(rootProject.layout.projectDirectory.file(".editorconfig"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should not change.

@@ -76,13 +76,12 @@ subprojects.of("lib", "spring", "examples", "ktor") {
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.kotest.framework.api)
testImplementation(libs.kotest.property)
testImplementation(libs.kotest.arrow)
Copy link
Collaborator

Choose a reason for hiding this comment

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

why removed?

@@ -141,10 +140,11 @@ val publishedProjects = listOf(
"stove-testing-e2e-redis",
"stove-ktor-testing-e2e",
"stove-spring-testing-e2e",
"stove-spring-testing-e2e-kafka"
"stove-spring-testing-e2e-kafka",
"stove-micronaut-testing-e2e"
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can remove it for now, until it gets matured, we don't want to publish it.

import org.slf4j.*

class Stove : AbstractProjectConfig() {
private val logger: Logger = LoggerFactory.getLogger("WireMockMonitor")
Copy link
Collaborator

@osoykan osoykan Jan 9, 2025

Choose a reason for hiding this comment

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

WireMockMonitor can't be, it is MicronautExample

@@ -67,6 +72,23 @@ kotlinx-io-reactor-extensions = { module = "io.projectreactor.kotlin:reactor-kot
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm", version.ref = "kotlinx-serialization" }
kotlinx-serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "kotlinx-serialization" }

# Micronaut
snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "snakeyaml" }
micronaut-parent = { module = "io.micronaut.platform:micronaut-parent", version = "4.7.1" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

version misalignments, above 4.4.3, but here 4.7.1, all micronaut packages share the same version.

import io.micronaut.runtime.Micronaut

@StoveDsl
abstract class BaseApplicationContextInitializer : ApplicationEventListener<StartupEvent> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yo don't need this one I believe.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a spring-boot initializer approach, and for micronaut it is not applicable.

}

companion object {
@JvmStatic fun main(args: Array<String>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

why there is a main here?

override suspend fun afterProject() = TestSystem.stop()
}

class BridgeSystemTests : FunSpec({
Copy link
Collaborator

Choose a reason for hiding this comment

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

These tests fail. Could you take a look?

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