https://github.com/minecraftforge/propatcher
A Gradle plugin for creating patch files between two directories.
https://github.com/minecraftforge/propatcher
Last synced: 3 months ago
JSON representation
A Gradle plugin for creating patch files between two directories.
- Host: GitHub
- URL: https://github.com/minecraftforge/propatcher
- Owner: MinecraftForge
- License: mit
- Archived: true
- Fork: true (CadixDev/ProPatcher)
- Created: 2021-05-12T21:31:34.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-10-24T07:35:16.000Z (about 3 years ago)
- Last Synced: 2025-01-17T14:36:23.047Z (11 months ago)
- Language: Groovy
- Homepage: https://plugins.gradle.org/plugin/uk.jamierocks.propatcher
- Size: 256 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
ProPatcher
==========
ProPatcher is a Gradle plugin for creating patch files on the go.
## Installation
ProPatcher has been added to Gradle's plugin portal, and can be used using the new
plugin mechanism introduced in Gradle 2.1.
You can find the plugin [here](https://plugins.gradle.org/plugin/uk.jamierocks.propatcher).
```gradle
plugins {
id 'uk.jamierocks.propatcher' version '2.0.0'
}
```
For those of you, using builds where you cannot utilise the new plugin mechanism,
or are using a version of Gradle prior to 2.1, here is the old example:
```gradle
buildscript {
repositories {
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath 'gradle.plugin.uk.jamierocks:propatcher:2.0.0'
}
}
apply plugin: 'uk.jamierocks.propatcher'
```
## Example
```gradle
patches {
// This is a directory input, you can also use zip file inputs using rootZip
rootDir = file('root')
// This is a directory input
target = file('target')
// This is a directory output
patches = file('patches')
}
```
## Tasks
| Name | Description |
| -------------- | ----------------------------------------------------- |
| `makePatches` | Make all necessary patch files. |
| `applyPatches` | Apply all patches to the target. |
| `resetSources` | Resets the target, to it's original unmodified state. |