The gendeps.sh
script can (for the most part) automatically generate the
gradle-sources.json file.
- Adjust the
$SOURCES_FILE
variable to where you want the json file to be generated. - Clone the Mindustry repo and cd into it.
- Run the
gendeps.sh
script from there.
For some reason, the script doesn't automatically recognize the dependency on com.github.Anuken.Arc:backend-headless. Thus it is manually added in the generator script. Whenever the required version changes, the version written in the generator needs to be adjusted (the failed gradle build will tell you the expected version).
Make sure gradle won't pull any dependencies from mavenLocal
(~/.m2/
).
Either remove the mavenLocal()
source from the build.gradle
or delete
~/.m2/
.
If you need more help, ping @TobTobXX.