-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add Kotlin Hello World sample for Spring Integration #372
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
artembilan
merged 6 commits into
spring-projects:main
from
cppwfs:SIS-kotlin-helloworld
Nov 21, 2025
Merged
Add Kotlin Hello World sample for Spring Integration #372
artembilan
merged 6 commits into
spring-projects:main
from
cppwfs:SIS-kotlin-helloworld
Nov 21, 2025
Conversation
This file contains hidden or 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 commit introduces a Kotlin-based implementation of the Hello World sample, demonstrating Spring Integration's Kotlin DSL capabilities. The sample includes two applications: a basic Hello World flow and a Poller application. The implementation consists of: - HelloService and HelloWorldConfig using Kotlin DSL for message flows - PollerConfig demonstrating time-based polling with Kotlin syntax - Test suite with unit and integration tests - Maven POM with Kotlin plugin configuration - README with setup instructions and code examples
artembilan
requested changes
Nov 20, 2025
...otlin/src/main/kotlin/org/springframework/integration/samples/helloworld/HelloWorldConfig.kt
Outdated
Show resolved
Hide resolved
...otlin/src/main/kotlin/org/springframework/integration/samples/helloworld/HelloWorldConfig.kt
Outdated
Show resolved
Hide resolved
...otlin/src/main/kotlin/org/springframework/integration/samples/helloworld/HelloWorldConfig.kt
Outdated
Show resolved
Hide resolved
...ld-kotlin/src/main/kotlin/org/springframework/integration/samples/helloworld/PollerConfig.kt
Outdated
Show resolved
Hide resolved
Revise integrationFlow to be idiomatic of the Kotlin DSL
artembilan
requested changes
Nov 20, 2025
artembilan
requested changes
Nov 20, 2025
...otlin/src/main/kotlin/org/springframework/integration/samples/helloworld/HelloWorldConfig.kt
Outdated
Show resolved
Hide resolved
...ld-kotlin/src/main/kotlin/org/springframework/integration/samples/helloworld/PollerConfig.kt
Outdated
Show resolved
Hide resolved
Update both Maven and Gradle build configurations to properly support Kotlin with Spring Framework. The Kotlin Spring plugin automatically handles making configuration classes open for proxying, eliminating the need for manual 'open' modifiers. Update maven generation scripts to handle kotlin plugin. Add execution compile section so classes are included in the jar. This can be tested via mvn clean package or to run mvn exec:java -Dexec.mainClass="org.springframework.integration.samples.helloworld.PollerApp" Changes include: - Add kotlin-spring and kotlin-allopen plugins to build configurations - Remove unnecessary 'open' modifiers from @configuration classes - Configure Kotlin Maven plugin with Spring compiler plugin - Simplify QueueChannel initialization to use default capacity - Update MessageProcessorMessageSource to use simpler lambda syntax - Adjust logging configuration to reduce noise from Spring framework
artembilan
requested changes
Nov 21, 2025
* Remove un used assertJ in groovy demo * Replace `org.jetbrains.kotlin.jvm` with `kotlin` when determining if kotlin plugin should be rended in pom.xml
artembilan
requested changes
Nov 21, 2025
artembilan
requested changes
Nov 21, 2025
...tlin/src/test/kotlin/org/springframework/integration/samples/helloworld/PollerConfigTests.kt
Show resolved
Hide resolved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces a Kotlin-based implementation of the Hello World sample, demonstrating Spring Integration's Kotlin DSL capabilities. The sample includes two applications: a basic Hello World flow and a Poller application.
The implementation consists of: