<commit_before>[![Build Status](https://travis-ci.org/fundacionjala/enforce-gradle-plugin.svg)](https://travis-ci.org/fundacionjala/enforce-gradle-plugin) [![license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/fundacionjala/enforce-gradle-plugin/blob/master/LICENSE)

---
Quick start
---

## General description

This project is a Gradle plugin that provides useful tasks for implement a Continuous Integration process for SalesForce projects.

## How can you use this plugin?

Here you can find the enought required information to have running a Gradle project with Enforce.

1.Create build.gradle file on your source code project, below you have an example:

```groovy
buildscript {
    repositories {
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'org.fundacionjala.gradle.plugins.enforce:enforce-gradle-plugin:1.1.4'
    }
}

apply plugin: 'enforce'
enforce {
	srcPath = 'src'
}
```

2.Register a Salesforce credential to be used

```groovy
   $ gradle addCredential -Pid=default
			  	-Pusername=<USER NAME>
			  	-Ppassword=<PASSWORD>
			  	-Ptoken=<SECURITY TOKEN>
```

In this step is recomendable put credential id as ***default*** value, to run the EnForce tasks without using ***credentialId*** parameter.

Executing a task without ***credentialId*** parameter:<commit_msg>Updated plugin version to the latest one 1.1.5<commit_after>[![Build Status](https://travis-ci.org/fundacionjala/enforce-gradle-plugin.svg)](https://travis-ci.org/fundacionjala/enforce-gradle-plugin) [![license](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](https://github.com/fundacionjala/enforce-gradle-plugin/blob/master/LICENSE)

---
Quick start
---

## General description

This project is a Gradle plugin that provides useful tasks for implement a Continuous Integration process for SalesForce projects.

## How can you use this plugin?

Here you can find the enought required information to have running a Gradle project with Enforce.

1.Create build.gradle file on your source code project, below you have an example:

```groovy
buildscript {
    repositories {
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath 'org.fundacionjala.gradle.plugins.enforce:enforce-gradle-plugin:1.1.5'
    }
}

apply plugin: 'enforce'
enforce {
	srcPath = 'src'
}
```

2.Register a Salesforce credential to be used

```groovy
   $ gradle addCredential -Pid=default
			  	-Pusername=<USER NAME>
			  	-Ppassword=<PASSWORD>
			  	-Ptoken=<SECURITY TOKEN>
```

In this step is recomendable put credential id as ***default*** value, to run the EnForce tasks without using ***credentialId*** parameter.

Executing a task without ***credentialId*** parameter:
{'fraction_non_alphanumeric': 0.11564871702204553, 'fraction_numerical': 0.0046982291290206, 'mean_word_length': 4.107011070110701, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6139014', 'n_tokens_mistral': 899, 'n_tokens_neox': 833, 'n_words': 240}