Skip to content

b3er/kmapper

Repository files navigation

KMapper Jitpack

Dumb and simple implementation of data class mapper on KSP. WIP - not for production, just POC.

Note - project archived and discontinued atm

Goals

  • Replacement of mapstruct for kotlin

Implemented

  • data class mapping
  • nested mappings reuse and generation
  • nullability
  • iterable mappings
  • enum mappings
  • default values
  • generic data classes

Download

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")
}

License

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.

About

Kotlin reflection free data class mapper POC

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages