-
-
Notifications
You must be signed in to change notification settings - Fork 158
Build sources jar #1859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Build sources jar #1859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds support for building and publishing a sources JAR alongside the main mod JAR to Modrinth, GitHub Releases, and GitHub Packages.
Key changes:
- Added conditional sources JAR generation controlled by the
BUILD_SOURCES_JARenvironment variable - Configured Maven publication to GitHub Packages with proper credentials
- Fixed several typos in build script comments
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| build.gradle | Added conditional sources JAR generation via withSourcesJar(), configured sources JAR inclusion in publishMods, set up Maven publication with GitHub Packages repository, and fixed typos in comments |
| .github/workflows/buildrelease.yml | Added BUILD_SOURCES_JAR environment variable and included publish task to publish to GitHub Packages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
isn't publishing sources to github kinda useless since it already has sources? |
This allows people to use github packages as a maven repo. Currently you can't use github as the maven repo. |
|
mmok |
|
I pushed to the wrong branch dammit |
Build sources jar and publish to modrinth and github packages.