Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.nincraft:modpackdownloader:0.7.2'
}
dependencies {
implementation("com.github.nincraft:modpackdownloader:0.7.2")
}
<dependency>
<groupId>com.github.nincraft</groupId>
<artifactId>modpackdownloader</artifactId>
<version>0.7.2</version>
</dependency>
libraryDependencies += "com.github.nincraft" % "modpackdownloader" % "0.7.2"
:dependencies [[com.github.nincraft/modpackdownloader "0.7.2"]]
This project is not actively maintained. Please consider finding an alternative downloader.
A simple command line downloader for Minecraft Forge Modpacks. Also works with Curse manifest JSONs.
Execute via command line with two arguments, the manifest json and the folder where you want your mods downloaded.
Example: java -jar modpackdownloader.jar -manifest mods.json -folder mods
This will read the mods.json and download all mods to the mods folder.
It can also be ran without any arguments and default to manifest.json for the manifest and mods for the download folder.
For additional examples check out some of our modpacks that implement this: