# Using Kotlin Symbol Processing (KSP) to Generate Enum Mappers

DevFeed: [Using Kotlin Symbol Processing (KSP) to Generate Enum Mappers](<https://devfeed.tech/articles/adding-ksp-to-your-toolbelt-23698.md>)

Original publisher: [Read original article](<https://engineering.theblueground.com/adding-ksp-to-your-toolbelt/>)

Author: Vaios Tsitsonis

Published: 2022-08-02T10:45:00Z

Content type: tutorial

Language: en

Sources: [Blueground Engineering blog](<https://devfeed.tech/sources/blueground-engineering-blog.md>)

Topics: [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [Gradle](<https://devfeed.tech/topics/gradle.md>), [Boilerplate](<https://devfeed.tech/topics/boilerplate.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [build times](<https://devfeed.tech/topics/build-times.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [annotation-processor](<https://devfeed.tech/tags/annotation-processor.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [gradle](<https://devfeed.tech/tags/gradle.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>)

## AI overview

This tutorial explains Kotlin Symbol Processing (KSP), its advantages over Java annotation processing, and how to set it up with Gradle. It demonstrates using KSP to generate mapper classes for enums and reduce duplicated conversion code.

## Source excerpt

Let's prepare the ground Before we start examining how to use KSP a.k.a Kotlin Symbol Processing, let's say a few words about what it is. For the familiars with the annotation processing, we could say that is an annotation processing tool for Kotlin. This