kotlin no args constructor code example
Example: kotlin no args constructor
Using in Gradle:
buildscript {
dependencies {
classpath "org.jetbrains.kotlin:kotlin-noarg:$kotlin_version"
}
}
apply plugin: "kotlin-noarg"
Or using the Gradle plugins DSL:
plugins {
id "org.jetbrains.kotlin.plugin.noarg" version "1.4.10"
}
noArg {
annotation("com.my.Annotation")
}