<commit_before>[![Build Status](https://drone.io/github.com/boxheed/gradle-pater-build-plugin/status.png)](https://drone.io/github.com/boxheed/gradle-pater-build-plugin/latest)
[ ![Download](https://api.bintray.com/packages/boxhead/gradle-plugins/gradle-pater-build-plugin/images/download.svg) ](https://bintray.com/boxhead/gradle-plugins/gradle-pater-build-plugin/_latestVersion)

# Gradle Pater Plugin
This plugin provides parent build script like capabilities to Gradle. Inspired by a number of blog posts about how to work with/around the current capabilities of Gradle to support importing other build scripts. Current strategies use either `apply from:` in conjunction with a URL or recommend writing your own plugin to set different aspects of a Gradle project programmatically. This plugin combines both of these approaches into a single strategy that allows you to write simple gradle build files and take advantage of dependency management.

# How
By packaging your gradle build script up in a jar file and including in your build script dependencies this plugin will find the build script and apply it to the gradle project as if it was referenced in the `apply from:` notation. What's more by taking advantage of jar library dependency management you can chain a number of build scripts together and have them applied to the project. This plugin uses the naming convention of the build scripts to sort the discovered scripts into a determinate order for applying to the project.

# Simple Usage
Create your java library which includes your build script. the pater-build plugin scans for files in a specific location in the `META-INF/pater-build` and must end in `.gradle` e.g. `META-INF/pater-build/opinion-java.gradle`. Then all you have to do is add your library into the buildscripts classpath along with the pater-build plugin e.g.

```
buildscript {
	repositories {
		jcenter()
	}
	dependencies {
	    //The pater build plugin.
		classpath 'com.fizzpod:pater-build:1.0.0'
		//Your library containing the build file in META-INF/pater-build 
		classpath 'com.example:opinion-java:1.0.0'
	}<commit_msg>Corrected the reference to the plugin dependency in the example.<commit_after>[![Build Status](https://drone.io/github.com/boxheed/gradle-pater-build-plugin/status.png)](https://drone.io/github.com/boxheed/gradle-pater-build-plugin/latest)
[ ![Download](https://api.bintray.com/packages/boxhead/gradle-plugins/gradle-pater-build-plugin/images/download.svg) ](https://bintray.com/boxhead/gradle-plugins/gradle-pater-build-plugin/_latestVersion)

# Gradle Pater Plugin
This plugin provides parent build script like capabilities to Gradle. Inspired by a number of blog posts about how to work with/around the current capabilities of Gradle to support importing other build scripts. Current strategies use either `apply from:` in conjunction with a URL or recommend writing your own plugin to set different aspects of a Gradle project programmatically. This plugin combines both of these approaches into a single strategy that allows you to write simple gradle build files and take advantage of dependency management.

# How
By packaging your gradle build script up in a jar file and including in your build script dependencies this plugin will find the build script and apply it to the gradle project as if it was referenced in the `apply from:` notation. What's more by taking advantage of jar library dependency management you can chain a number of build scripts together and have them applied to the project. This plugin uses the naming convention of the build scripts to sort the discovered scripts into a determinate order for applying to the project.

# Simple Usage
Create your java library which includes your build script. the pater-build plugin scans for files in a specific location in the `META-INF/pater-build` and must end in `.gradle` e.g. `META-INF/pater-build/opinion-java.gradle`. Then all you have to do is add your library into the buildscripts classpath along with the pater-build plugin e.g.

```
buildscript {
	repositories {
		jcenter()
	}
	dependencies {
	    //The pater build plugin.
		classpath 'com.fizzpod:gradle-pater-build-plugin:1.0.0'
		//Your library containing the build file in META-INF/pater-build 
		classpath 'com.example:opinion-java:1.0.0'
	}
{'fraction_non_alphanumeric': 0.0705143123109146, 'fraction_numerical': 0.0027926460321154294, 'mean_word_length': 4.589076723016905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1476496', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1093, 'n_words': 521}