Skip to content

A Gradle plugin for creating patch files between two directories.

License

Notifications You must be signed in to change notification settings

MinecraftPlus/ProPatcher

 
 

Repository files navigation

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.

plugins {
    id 'uk.jamierocks.propatcher' version '2.1.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:

buildscript {
    repositories {
        maven {
            url 'https://maven.minecraftplus.org/'
        }
    }
    dependencies {
        classpath 'org.minecraftplus.gradle:propatcher:2.1.0'
    }
}

apply plugin: 'uk.jamierocks.propatcher'

Example

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.

About

A Gradle plugin for creating patch files between two directories.

Resources

License

Stars

Watchers

Forks

Languages

  • Groovy 100.0%