Yes, I have the application plugin. Please tell mo...
# ktor
n
Yes, I have the application plugin. Please tell more detailed, what I need to do in this case?
This sample generates a fatjar
Copy code
ls -la deployment/docker/build/libs
total 22568
drwxr-xr-x   4 soywiz  staff       128 Apr 25 18:32 .
drwxr-xr-x  10 soywiz  staff       320 Apr 25 18:32 ..
-rw-r--r--   1 soywiz  staff     15995 Apr 25 18:35 docker.jar
-rw-r--r--   1 soywiz  staff  10979065 Apr 25 18:35 my-application.jar
In build/libs you would have two jar files
the one that is bigger contains all the required dependencies In this case it would be
java -jar deployment/docker/builds/libs/my-application.jar
n
how can I produce fat.jar without gradle docker build command? shadowJar task produce jar (~11MB) that I can't run for now.
Copy code
Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'ktor'
I will try to create a new project and from scratch configure all the things - I think I broke something during my experiments
the question is removed. Configured everything from scratch - and it worked.
Copy code
16:37:27: Executing task 'shadowJar'...

:compileKotlin
:compileJava NO-SOURCE
:processResources
:classes
:shadowJar

BUILD SUCCESSFUL in 11s
3 actionable tasks: 3 executed
16:37:39: Task execution finished 'shadowJar'.
👍 1