Behzod
05/01/2023, 9:07 AMBuildable
1.1.0 🎉
We're excited to share our new library Buildable
, which simplifies code generation for common design pattern such as Factory and object mapping (KSP).
Key features of `Buildable`:
✅ @BuildableFactory
for efficient factory pattern implementation
✅ @BuildableMapper
to simplify object mapping
✅ Improved maintainability and readability
✅ Reduced boilerplate code
Get started with `Buildable`:
https://github.com/getspherelabs/buildableStephan Schröder
05/01/2023, 1:12 PM@BuildableMapper
is like MapStruct for Kotlin. Interessting.
Are there any plans to provide an IntelliJ plugin to take care of the IDE not knowing that those mapper functions will exist at runtime?Trevor Stone
05/01/2023, 3:04 PMStephan Schröder
05/01/2023, 7:31 PMBehzod
05/01/2023, 11:38 PM*@Buildable* @Stephan Schröder
.
At the moment, we don't have any plans to provide an IntelliJ plugin. Additionally, we used the KSP (Kotlin Symbol Processing) API for code generation. In order to use the generated code, you need to execute the ./gradlew kspDebugKotlin
command or perform a project rebuild. This process ensures that the generated code is properly built and ready for use.Stephan Schröder
05/03/2023, 8:00 AMBehzod
05/03/2023, 8:46 AM@BuildableMapper
maps and generates only the properties that have the same name and type in the source and target classes. At the moment, if the property names or types do not match exactly, @*BuildableMapper*
does not work properly.
I will work on finding solution for this problem as soon as possible :)