Is there a way in sbt-native-packager to split a fat jar into multiple jars? Ideally one for the dependencies, another for assets, and a third for the code? I am trying to optimize docker layering by splitting the seldom changed assets and dependencies into their own docker layers and leaving the code in its own separate layer. This way when only the code changes, I do not have to push the additional layers for the unchanged dependencies and assets. It would only change the code layer.
I assume sbt assembly could do this easily, but I am wondering if there are other ways about this. I know there has also been some work done towards porting Jib to SBT as well, as Jib does this technique of splitting the dependencies. You can see a Jib based example of what I am trying to achieve here: https://phauer.com/2019/no-fat-jar-in-docker-image/
Thanks!