1.0.2-ALPHA.3
Compatibility
Changes
v1.0.2
This pull request refactors the GitHub Actions workflow in .github/workflows/release-and-publish.yml to simplify the build and publish process. It removes unnecessary credential handling, consolidates build steps, and adds helpful comments for clarity. The workflow now directly builds and publishes in each job, making the process more straightforward and maintainable.
Workflow refactoring and simplification:
- Merged the build and release steps into each publish job (
publish-github,publish-hangar,publish-modrinth), removing the separatebuild-and-releasejob and the need for artifact downloading between jobs. [1] [2] - Removed explicit setup and use of GitHub Packages credentials (
GPR_USER,GPR_API_KEY) from the build and publish steps, simplifying the environment and command usage. [1] [2] [3] - Consolidated the build process in each job to use
./gradlew build shadowJar --stacktracebefore publishing, ensuring a fresh build for each publish target. [1] [2] [3]
Documentation and clarity improvements:
- Added descriptive comments to each workflow step to explain their purpose and improve maintainability for future contributors. [1] [2] [3]
Consistency improvements:
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:Ksss1YfG:HLx77vJF"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Ksss1YfG:HLx77vJF"
}

