Don't let the shadow jar plugin shadow your application

twitter logo github logo ・1 min read

In my previous post, I shared a template for deploying a ktor application to Google App Engine.

As part of this process I was using the Shadow plugin.
Well it turns out, by default the plugin won't copy service files from java Serviceloader.

This lead to my application failing due SPI classes not being loaded. So if your app breaks by using the plugin just add this to your build.gradle

shadowJar {

Happy coding

twitter logo DISCUSS
Classic DEV Post from Jun 15

Micro Frontends: a deep dive into the latest industry trend.

An honest first time impression of the micro front-end design pattern.

Vinicius Carvalho profile image

Customize your DEV feed to keep up with the technologies you care about.

Get Started