bjonnh
12/06/2018, 12:19 AMgildor
12/06/2018, 1:32 AMtasks.withType
is enough
https://gist.github.com/bjonnh/a858259caae88c7f363a2ae7a0a3da1d#file-build-kts-
L47-L58gildor
12/06/2018, 1:33 AMjava.sourceCompatibility = JavaVersion.VERSION_1_8
gildor
12/06/2018, 1:34 AMgildor
12/06/2018, 1:35 AMjava
plugin, kotlin jvm already implicitly uses it
https://gist.github.com/bjonnh/a858259caae88c7f363a2ae7a0a3da1d#file-build-kts-L6gildor
12/06/2018, 1:53 AMtasks.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)gildor
12/06/2018, 2:09 AMbjonnh
12/20/2018, 4:43 PM