a questino about <https://ktor.io/servers/deploy/p...
# ktor
g
a questino about https://ktor.io/servers/deploy/packing/fatjar.html - Is it really necessary to apply the plugin ‘application’ when you are building a fat jar?
Oh to get back to my own question here - I tried a few different options to get rid of as much “unknown overhead as possible” and ended up with
Copy code
...
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
apply plugin: 'kotlin'

tasks.build.dependsOn tasks.shadowJar

shadowJar {
    baseName = 'app'
    classifier = null
    version = null
    manifest {
        attributes 'Main-Class': 'se.olapetersson.MainKt'
    }
}

...
You had to add the tasks.builds.dependsOn but I got rid of quite a few tasks from the application (and distribution) plugin