Jeryn99 / Regeneration

Minecraft Mod - Adds the concept of Regeneration from the show Doctor who
https://minecraft.curseforge.com/projects/regeneration
GNU Lesser General Public License v3.0
31 stars 19 forks source link

Fixing Gradle config for contributors without access to private keys #422

Closed Hugobsb closed 1 year ago

Hugobsb commented 1 year ago

Context

When the API Key variable was being set at build.gradle, the empty check API_KEY != "" was not working because it was returning "extension 'curseforge'". The problem has been fixed by using safe navigation to refer to the property apiKey directly.

Images for reference

The problem

image

The return of project.findProperty

image

After the fix

image