Gradle plugin for the Origami Minecraft fork.
Features:
- Fetch Minecraft version manifests from the official Mojang API
- Download Minecraft server jar and libraries
- Decompile Minecraft server jar using VineFlower
- Apply patches to the decompiled source code
Add this repo to the settings.gradle.kts file:
pluginManagement {
repositories {
maven(url = "https://maven.fancyspaces.net/origami/releases")
maven(url = "https://maven.fancyspaces.net/fancyinnovations/releases")
gradlePluginPortal()
}
}Then apply the plugin in your build.gradle.kts file:
plugins {
id("com.origamimc.strata-workspace") version "1.0.0"
}You can configure strata in your build.gradle.kts file:
strata {
minecraftVersion.set("26.1")
// optional
// cacheDir.set(layout.buildDirectory.dir("strata-cache").get().asFile.absolutePath)
// sourceDir.set(file("src/main/java").absolutePath)
// patchesDir.set(file("patches").absolutePath)
}Set up the strata workspace:
./gradlew setupStrata
./gradlew applyFilePatches
./gradlew applyFeaturePatches