1.3.2-ALPHA.2
Compatibility
Changes
v1.3.2
This pull request refactors the GitHub Actions workflow for releasing and publishing the project. The main focus is on simplifying the build and deployment jobs, removing unnecessary steps, and improving clarity with comments. The jobs for publishing to GitHub, Hangar, and Modrinth are now more streamlined and easier to maintain.
Workflow simplification and job improvements:
- The main build-and-release job has been renamed to
publish-github, and the workflow no longer uses a separate build artifact step. Each publish job now builds the project independently, reducing cross-job dependencies. [1] [2] - Removed the setup of GitHub Packages credentials and the use of artifact download/upload steps in all jobs, as they are no longer needed with the new approach. [1] [2] [3]
Build process and security improvements:
- Each job now includes explicit steps for checking out the repository and validating the Gradle Wrapper for improved security and clarity, with added comments explaining each step. [1] [2] [3]
- The build command now uses
./gradlew build shadowJar --stacktracein all jobs, ensuring the shadow JAR is built before publishing. [1] [2] [3]
Publishing steps:
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:oRpYCka8:BA3SRAMd"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:oRpYCka8:BA3SRAMd"
}

