Skip to content

Allow builds without github.properties - #14

Open
masaru87 wants to merge 1 commit into
FairyDevicesRD:mainfrom
masaru87:fix/optional-github-properties
Open

Allow builds without github.properties#14
masaru87 wants to merge 1 commit into
FairyDevicesRD:mainfrom
masaru87:fix/optional-github-properties

Conversation

@masaru87

@masaru87 masaru87 commented Aug 4, 2026

Copy link
Copy Markdown

Summary

  • Load github.properties only when the file exists
  • Use TOKEN instead of USERNAME for the GitHub Packages password fallback

Why

github.properties is gitignored, but the settings and publishing configuration currently open it unconditionally. As a result, a fresh clone fails during Gradle configuration before any task can run. The GitHub Actions workflows avoid the failure by creating an empty file first.

This keeps the existing properties-file and environment-variable credential paths while allowing tasks that do not need GitHub Packages credentials to run from a fresh clone.

Verification

  • ./gradlew jvmTest --no-daemon without github.properties or TOKEN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant