Kotlin Script Definition

I’m trying to implement a DSL in my application using kotlin scripting, and as far as the actual execution goes it’s been great, however I’m running into an issue loading the script definition using the kotlin plugin and intellij. When I open a script governed by the custom script definition, it immediately errors out with a no class def found error, it’s a guice class used my the maven dependency resolver, I thought it a bit odd, but just ended up shading all of the dependencies into the jar, still I’m getting the same error, I have opened the jar and manually verified that the class it’s looking for is there, is there a better way to define/include dependencies in a script definition?