Skip to content

Support JitPack token in CI and build#276

Draft
gemcoder21 wants to merge 6 commits intomainfrom
jitpack-ci
Draft

Support JitPack token in CI and build#276
gemcoder21 wants to merge 6 commits intomainfrom
jitpack-ci

Conversation

@gemcoder21
Copy link
Collaborator

@gemcoder21 gemcoder21 commented Mar 10, 2026

CI Test

Wire JITPACK_TOKEN from GitHub Secrets into CI workflows and the Gradle build. Updated .github/workflows/ci.yml, docker.yml, and verify-apk.yml to pass JITPACK_TOKEN (or write jitpack.token to local.properties). Updated build.gradle.kts to read jitpack.token / JITPACK_TOKEN and configure the https://jitpack.io Maven repository to use the token as credentials when present, enabling authenticated JitPack access in CI and local builds.
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the project's build configuration by introducing support for authenticated access to the JitPack dependency repository. This change allows the build process, particularly in continuous integration environments, to securely fetch dependencies from JitPack using a provided token, improving reliability and access to private or rate-limited artifacts.

Highlights

  • JitPack Token Support: Implemented logic to retrieve a JitPack authentication token from either Gradle properties (jitpack.token) or system environment variables (JITPACK_TOKEN).
  • Authenticated JitPack Access: Configured the JitPack Maven repository to use the retrieved token for authentication, enabling secure access to dependencies when a token is provided.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • build.gradle.kts
    • Added support for reading a JitPack authentication token from properties or environment variables.
    • Configured the JitPack Maven repository to use the token for credentials if it is present.
Ignored Files
  • Ignored by pattern: .github/workflows/** (3)
    • .github/workflows/ci.yml
    • .github/workflows/docker.yml
    • .github/workflows/verify-apk.yml
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request successfully implements support for JitPack authentication by allowing a token to be provided via local.properties or environment variables. The approach is consistent with existing credential handling for other repositories, ensuring secure and flexible configuration for CI/build environments. The changes are clear and directly address the stated goal.

Stop passing JITPACK_TOKEN and remove credential usage for JitPack across CI. Workflows (.github/workflows/ci.yml, docker.yml, verify-apk.yml) no longer write or expose jitpack.token and the Gradle setup step was renamed to "Setup Gradle" with caching disabled. build.gradle.kts no longer reads the jitpack token or injects credentials for the JitPack maven block — the repository is kept but without credentials. Minor formatting/whitespace cleanup included.
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