Example of jatJar task using Gradle Kotlin DSL:
val mainClass = "com.github.daggerok.Main" // replace it!
tasks {
register("fatJar", Jar::class.java) {
archiveClassifier.set("all")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {