kotlin no args constructor
snippet in kotlin

kotlin no args constructor

user333

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