Example Gradle Plug-in written in Kotlin
build.gradle:
plugins {
id 'com.example.hello' version '0.1-SNAPSHOT'
}
build.gradle.kts:
plugins {
id("com.example.hello") version "0.1-SNAPSHOT"
}
That will create the hello task.
Run the hello task with this command:
./gradlew hello