Skip to content

feat: Add JitPack configuration for publishing#4365

Merged
jamesarich merged 2 commits into
mainfrom
chore/publishing2
Jan 29, 2026
Merged

feat: Add JitPack configuration for publishing#4365
jamesarich merged 2 commits into
mainfrom
chore/publishing2

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

Thank you for sending in a pull request, here's some tips to get started!

(Please delete all these tips and replace with your text)

  • Before starting on some new big chunk of code, it it is optional but highly recommended to open an issue first to say "Hey, I think this idea X should be implemented and I'm starting work on it. My general plan is Y, any feedback is appreciated." This will allow other devs to potentially save you time by not accidentally duplicating work etc...
  • Mention "#(issue)" in the description, when applicable
  • Please do not check in files that don't have real changes
  • Please do not reformat lines that you didn't have to change the code on
  • If your other co-developers have comments on your PR please tweak as needed
  • Do not use any external image service, just paste or drag and drop the image here and it will be uploaded automatically
  • Please also enable "Allow edits by maintainers".

This commit introduces a `jitpack.yml` file to enable building and publishing the library via JitPack. It also adjusts module dependencies to correctly expose required APIs for consumers of the library.

### Key Changes:
- **JitPack Configuration:** Added a `jitpack.yml` file to specify `openjdk21` and a `before_install` step to generate protobuf classes, ensuring the build succeeds on JitPack's servers.
- **Dependency Scope:** In the `core:model` module, dependencies on `core:proto`, `androidx.annotation`, and `kotlinx.serialization.json` were changed from `implementation` to `api`. This transitively exposes these essential APIs to projects that consume the `core:model` library.
- **Plugin Removal:** The `meshtastic.android.library.compose` plugin, which was not needed, was removed from the `core:proto` module.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit removes the configuration for publishing to GitHub Packages from the `publishing.gradle.kts` file. The logic that set up the Maven repository using `GITHUB_ACTOR` and `GITHUB_TOKEN` environment variables has been deleted.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@jamesarich jamesarich merged commit 266650f into main Jan 29, 2026
4 checks passed
@jamesarich jamesarich deleted the chore/publishing2 branch January 29, 2026 21:04
@codecov

codecov Bot commented Jan 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (e46cb27) to head (76c6a62).
⚠️ Report is 10 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #4365   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines         28      28           
  Branches       8       8           
=====================================
  Misses        28      28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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