Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/onelitefeathernet/glue

A git patcher inspired by soft spoon of paper
https://github.com/onelitefeathernet/glue

bukkit forge git gitpatcher minestom paper patch patch-management

Last synced: about 2 months ago
JSON representation

A git patcher inspired by soft spoon of paper

Awesome Lists containing this project

README

        

# Glue
A code patcher that glues source code changes together with patches

## How to use in your project:

Add this in your `build.gradle.kts`:
```kt
plugins {
id("dev.onelitefeather.glue") version ""
}
group = "me.yourgroupname.yourplugin"
version = "1.0.0-SNAPSHOT"

glue {
upstreams {
useStandardUpstream("YourProjectOrUpstreamName") {
// This line sets the git clone url, for example: https://github.com/organisation/repository.git
url.set(github("organisation", "repository"))

// Always use the long git commit hash to check out the wanted state
ref = ""

// This is where the user changes are
patchDir = layout.projectDirectory.dir("patches")

// This is the base repository to generate the patches (diffs are made in the background against the output dir)
upstreamDir = layout.projectDirectory.dir("upstream")

// The repository with all included changes also called work directory
outputDir = layout.projectDirectory.dir("downstream")
}
}
}
```

Inspired by [paperweight](https://github.com/PaperMC/paperweight/tree/softspoon-v2)