Skip to content

Conversation

@kevinthegreat1
Copy link
Collaborator

Build sources jar and publish to modrinth and github packages.

Copy link

Copilot AI left a 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_JAR environment 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.

@viciscat
Copy link
Collaborator

isn't publishing sources to github kinda useless since it already has sources?

@kevinthegreat1
Copy link
Collaborator Author

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.

@viciscat
Copy link
Collaborator

mmok

@kevinthegreat1
Copy link
Collaborator Author

I pushed to the wrong branch dammit

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

Labels

reviews needed This PR needs reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants