1.2.4-ALPHA.8
Compatibility
Changes
v1.2.4
This pull request refactors the GitHub Actions workflow for releasing and publishing the project. The main focus is on simplifying the build and publish steps, removing unnecessary credentials, and improving clarity with additional comments. The workflow now builds the project directly in each publish job instead of relying on artifacts from a centralized build job.
Workflow refactoring and simplification:
- Removed the centralized
build-and-releasejob and replaced it with apublish-githubjob, and updated dependent jobs (publish-hangar,publish-modrinth) to build the project independently. [1] [2] - Removed the use of GitHub Packages credentials (
GPR_USER,GPR_API_KEY) and related Gradle properties from all jobs, simplifying the authentication process. [1] [2] [3]
Build and publishing improvements:
- Each publish job now checks out the repository, validates the Gradle wrapper, sets up JDK 21, and builds the project using
./gradlew build shadowJar --stacktrace, ensuring consistent build environments. [1] [2] [3] - Removed the use of artifact upload/download steps; jobs build the JAR directly instead of relying on artifacts from another job. [1] [2]
Documentation and clarity:
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:SkDKQ89z"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:Ksss1YfG:SkDKQ89z"
}

