I've been working on a small project and I'd like to have the .jar in the root of the repo (here's my repo so you can understand what I mean). Currently, I can only get the .jar to run when it is located in the out/artifacts/ folder (which is not shown on the GitHub repo I linked because there aren't currently any contents there). When I place it there, the necessary surrounding folders aren't there unless I move them there and I don't really want to duplicate the files within my repo. I can't figure out why this is happening. It works fine in Intellij when I run it through my main method (located in src/Main.java). I'd also like to not have to worry about my .jar and my .java files not referencing the same files with the same paths, so having the .jar in the root is pretty important to me.
Here's how I'm building my .jar.
Here are the remaining dependencies listed for the .jar to be built.
If anyone could explain to me what I'm doing wrong in terms of dependencies and getting my .jar to work, that would be great.