Platform interface is the core abstraction for all platform implementations in MCReleaser. Each platform (GitHub, Modrinth, Hangar, etc.) implements this interface to provide upload functionality.
Package
Interface Declaration
Methods
createUploadRunnable
Creates a runnable task for uploading files to the platform.The bundle of files to upload, containing a primary file and optional secondary files
Returns an Optional containing a BatchRunnable if the platform is properly configured, or an empty Optional if required properties are missing
Usage
Platform implementations validate required properties and return an empty Optional if configuration is missing:Implementations
MCReleaser provides the following platform implementations:- GithubPlatform - GitHub Releases
- ModrinthPlatform - Modrinth mod distribution
- HangarPlatform - Hangar plugin repository
- PolymartPlatform - Polymart marketplace
- CurseForgePlatform - CurseForge mod distribution
Related Classes
- FileBundle - File bundle record
- PropertyKey - Property configuration