Join Slack
Communities
Powered by
so i ended up restructuring my project to do one s...
# scripting
n
Nikky
03/12/2019, 9:43 PM
so i ended up restructuring my project to do one set of dependencies at a time and shadowJar them into a fat-jar that executes the program
s
SrSouza
03/14/2019, 5:41 PM
I create a temp fat-jar with the compilation output and add to the classpath of next compilation but is not work unfortunately
https://github.com/DevSrSouza/Bukkript/blob/master/host/src/main/kotlin/br/com/devsrsouza/bukkript/host/Host.kt#L191
n
Nikky
03/14/2019, 6:19 PM
a jar is a java archive, you cannot just rename some file containing serialized bytecode into a jar and expect it to work
Nikky
03/14/2019, 6:20 PM
what you will most likely need to do is add the dependencies you need to the build.gradle of either your project or the consuming project
Nikky
03/14/2019, 6:20 PM
i simplify that with a gradle plugin that handled creatign a shadowjar and launching it in the correct way
Open in Slack
Previous
Next