MineFortress RTS

MineFortress RTS

369k Downloads

Project dependencies are published in GitHub packages.

remmintan opened this issue ยท 0 comments

commented

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

  1. Download the repo
  2. Open it in IntelliJ IDEA
  3. Gradle project won't import properly

Workaround
We have a quick workaround that could help you start working with the mod right now.

  1. Follow this link and click on "Generate new token"
image
  1. When creating a token check one permission for this token read:packages
image
  1. After the token is created go and save it somewhere.
  2. Now open the build.gradle file in the root directory of the project.
  3. 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
    }
}
  1. 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.