Dumb and simple implementation of data class mapper on KSP. WIP - not for production, just POC.
Note - project archived and discontinued atm
- Replacement of mapstruct for kotlin
- data class mapping
- nested mappings reuse and generation
- nullability
- iterable mappings
- enum mappings
- default values
- generic data classes
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
plugins {
...
id("com.google.devtools.ksp") version "<version>"
}
dependencies {
val kMapperVersion = <version>
implementation("com.github.b3er.kmapper:api:$kMapperVersion")
ksp("com.github.b3er.kmapper:processor:$kMapperVersion")
}
Copyright 2021 Ilya Usanov.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.