https://kotlinlang.org logo
Title
a

Alan Ramirez

01/27/2022, 3:27 AM
Hello guys, I am new to Ktor and the documentation seems to fall a bit short for me could anyone give me advice or resources to fix my issue? Thank you https://stackoverflow.com/questions/70872686/project-fatjar-not-found-in-root-project
d

duuusha

01/27/2022, 7:31 AM
Hi, this topic uses the ktor-documentation/tree/2.0.0/codeSnippets/snippets/fatjar sample as an example. Given that this sample is a sub-project of codeSnippets, creating a fat JAR requires adding a sub-project name before the
shadowJar
task:
./gradlew :fatjar:shadowJar
For standalone project, this command looks like this:
./gradlew shadowJar
I’ve added info that the mentioned command is applicable to the specific project: https://ktor.io/docs/eap/fatjar.html#build
a

Alan Ramirez

01/27/2022, 5:11 PM
I tried this as well but i still get the same error but now shadowJar is not found