Konstantin Pavlov
|
2a058796d1
|
#1897 Add Kotlin dependencies, plugins, and extensions (#2197)
## Issue
Discussion #1897
## Change
Porting
[kpavlov/langchain4j-kotlin](https://github.com/kpavlov/langchain4j-kotlin)
Integrated Kotlin support by adding necessary dependencies and plugins
to the project. Introduced Kotlin extensions for ChatLanguageModel with
corresponding tests. Updated .editorconfig for improved import and
properties formatting.
- Kotlin dependencies added as optional, so it will not pollute java
projects
- Maven Javadoc plugin replaced with
[Dokka](https://kotlinlang.org/docs/dokka-maven.html) in core module in
order to include both Java and Kotlin docs
- Upgrade Kotlin to
[2.1.0](https://blog.jetbrains.com/kotlin/2024/11/kotlin-2-1-0-released/)
## General checklist
- [x] There are no breaking changes
- [x] I have added unit and integration tests for my change
- [ ] I have manually run all the unit and integration tests in the
module I have added/changed, and they are all green
- [ ] I have manually run all the unit and integration tests in the
[core](https://github.com/langchain4j/langchain4j/tree/main/langchain4j-core)
and
[main](https://github.com/langchain4j/langchain4j/tree/main/langchain4j)
modules, and they are all green
- [x] I have added/updated the
[documentation](https://github.com/langchain4j/langchain4j/tree/main/docs/docs)
- [ ] I have added an example in the [examples
repo](https://github.com/langchain4j/langchain4j-examples) (only for
"big" features)
- [ ] I have added/updated [Spring Boot
starter(s)](https://github.com/langchain4j/langchain4j-spring) (if
applicable)
|
2024-11-28 11:53:15 +01:00 |