Kotlin compiler plugin that adds shallowSize
extension property to all data classes.
Kotlin 1.5.0 is supported.
- Download
.jar
from release assets. - Add compiler option in
build.gradle.kts
:
tasks.withType<KotlinCompile>().all {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xplugin=/path/to/core-1.0-SNAPSHOT.jar",
"-P",
"plugin:arrow.meta.plugin.compiler:generatedSrcOutputDir=${buildDir}"
)
}
}
$ git clone git@github.com:winter-yuki/kapacity.git
$ cd kapacity
$ ./gradlew :example:run # Run example
$ ./gradlew :core:test # Run tests