<https://gist.github.com/bjonnh/a858259caae88c7f36...
# gradle
g
This https://gist.github.com/bjonnh/a858259caae88c7f363a2ae7a0a3da1d#file-build-kts-L44-L46 Can be replaced with
Copy code
java.sourceCompatibility = JavaVersion.VERSION_1_8
No need to apply
java
plugin, kotlin jvm already implicitly uses it https://gist.github.com/bjonnh/a858259caae88c7f363a2ae7a0a3da1d#file-build-kts-L6
https://gist.github.com/bjonnh/a858259caae88c7f363a2ae7a0a3da1d#file-build-kts-L60-L65 Can be replaced with this (if you use Gradle 5):
Copy code
tasks.shadowJar {
    baseName = "app"
    classifier = ""
    version = ""
    mergeServiceFiles()
}
This is not 100% equivalent, configures particular task
shadowJar
, not all tasks of this type as your existing snippet, but by default you have only one such task (and runShadow depends on it)
You use pretty old version of shadow plugin, not sure that it works properly with the latest versions of Gradle, I would recommend to use latest one: 4.0.3 https://plugins.gradle.org/plugin/com.github.johnrengelman.shadow
b
Oh thank you I hate slack, it never shows me answers to threads