Gradle plugin to automatically upload to polymart.org
MIT License
A Gradle plugin for automating releases to Polymart. Check it out on the gradle plugin portal.
.zip
, .jar
, .yml
, .sk
, and .schematic
.Add the following code to your build.gradle
(Groovy) or build.gradle.kts
(Kotlin) file to include the plugin:
plugins {
id 'com.cjcrafter.polymart-release' version '1.0.1'
}
plugins {
id("com.cjcrafter.polymart-release") version "1.0.1"
}
You can configure the plugin by adding a polymart
block to your build.gradle
or build.gradle.kts
.
polymart {
apiKey = 'your_api_key_here'
resourceId = 1234
version = '1.0.0'
title = 'New Release'
message = 'New features added'
file = file('path/to/your/file.zip')
beta = false // optional, defaults to false
snapshot = false // optional, defaults to false
}
polymart {
apiKey = "your_api_key_here"
resourceId = 1234
version = "1.0.0"
title = "New Release"
message = "New features added"
file.set(file("path/to/your/file.zip"))
beta = false // optional, defaults to false
snapshot = false // optional, defaults to false
}
Once configured, you can run the following Gradle task to upload a new version to Polymart:
./gradlew createPolymartRelease
MIT License
Contributions are welcome. Please submit a pull request or create an issue for any enhancements or bug fixes.