Project dependencies are published in GitHub packages.
remmintan opened this issue ยท 0 comments
Describe the bug
We just found out that some of the project dependencies are published in GitHub packages. The GitHub packages require you to authorize before downloading the packages. You will receive 403 from Github or 400 from JitPack until you authorize your Gradle against GitHub.
To Reproduce
- Download the repo
- Open it in IntelliJ IDEA
- Gradle project won't import properly
Workaround
We have a quick workaround that could help you start working with the mod right now.
- Follow this link and click on "Generate new token"
- When creating a token check one permission for this token
read:packages
- After the token is created go and save it somewhere.
- Now open the
build.gradle
file in the root directory of the project. - Change
maven {
url = "https://maven.pkg.github.com/minefortress-mod/minefortress-cc-api"
}
maven {
url = "https://maven.pkg.github.com/minefortress-mod/automatone"
}
to
maven {
url = "https://maven.pkg.github.com/minefortress-mod/minefortress-cc-api"
credentials {
username = YOUR GITHUB USERNAME
password = YOUR TOKEN
}
}
maven {
url = "https://maven.pkg.github.com/minefortress-mod/automatone"
credentials {
username = YOUR GITHUB USERNAME
password = YOUR TOKEN
}
}
- Reload your Gradle project and it will work fine now
Full fix
I will need to republish the MineFortress dependencies in some truly public maven repos. It will take some time, I will close this issue once I am done with that.