gbl / AntiGhost

Mod that requests the server to send surrounding blocks to you, to get rid of ghost blocks
MIT License
28 stars 16 forks source link

Compilation issue #16

Closed crystall1nedev closed 3 years ago

crystall1nedev commented 3 years ago

I've tried compiling on Manjaro 21 and Ubuntu 20.04, and I still get the same results. Gradle fails with:

* What went wrong:
A problem occurred configuring root project 'AntiGhost'.
> apiKey not set for project 273279

I checked over the steps to compile as written in your COMPILING.MD file and nothing changed :/

crystall1nedev commented 3 years ago

Found the problem:

curseforge {
    apiKey = System.getenv("CURSEFORGE_TOKEN")
    project {
    id = '273279'
    releaseType = 'release'
    addGameVersion("${Versions['minecraft_version']}")
    addGameVersion("Java 8")
    addGameVersion("Fabric")

    mainArtifact(remapJar)
    }
    // afterEvaluate {
        // logger.quiet("remapJar:", remapJar)
        // mainArtifact(remapJar.jar)
        // uploadTask.dependsOn(remapJar)
    // }
    options {
        // debug = true
    forgeGradleIntegration = false
    }
}

I'm guessing this is specific to your Curseforge uploading?

gbl commented 3 years ago

Yes, that's the curseforge plugin, which unfortunately bails if the apikey isn't set, even if you just compile and don't upload to curseforge. You can set the apikey to "whatever" to compile it. Guess I'll have to put some default apikey there if CURSEFORGE_TOKEN isn't set so people can at least compile, as it doesn't seem like the author of the CF plugin is going to fix that anytime soon.

crystall1nedev commented 3 years ago

I was actually able to compile when I deleted those lines.