<commit_before>catalysts-gradle-plugins
========================

A collection of reusable gradle plugins.


Usage
=====
**catalysts-gradle-plugins** is *work-in-progress* and not yet published on maven central.
If you 're curious, you can try it out by downloading the source and placing it into the ```buildSrc``` directory
of your gradle project.


List of plugins
===============

Grails
------

Applies grails nature to your project by updating the source sets, configure sonar (if available), and adding test and
build tasks. If the project is an grails application (not a plugin), it adds a war task. It includes
[gradle-grails-wrapper](https://github.com/ConnorWGarvey/gradle-grails-wrapper) for the grails-* tasks and automatic
download of the specified grails version.

**Example:**
```
apply plugin: 'cat-grails'
grails {
    version = '2.1.1'
}
```
Now the ```war``` task on every grails application (usually one) builds the war file with the specified grails version.
If you want to test your app before creating the archive, use the ```build``` task.

You can rename (or move) the produced war file(s) with a simple gradle task, eg.
```
task build(type: Sync, dependsOn: ':your-grails-app:build') {
    from 'your-grails-app/target'
	into 'build'
	include '*.war'
	rename '(.*).war', 'ROOT.war'
}
```

**NOTE: This plugin is currently intended only for multi-project builds.**

LESS
------

Converts your .less files to .css.
You don't have to install the less executable on your machine - this plugin
includes [lesscss-engine](https://github.com/asual/lesscss-engine).

**Example:**
```
apply plugin: 'cat-less'
less {
   sourceFiles = fileTree(dir: 'less', include: '*.less')
   outputDirectory = file('web-app/css')<commit_msg>update readme for grails.project.war.file setting<commit_after>catalysts-gradle-plugins
========================

A collection of reusable gradle plugins.


Usage
=====
**catalysts-gradle-plugins** is *work-in-progress* and not yet published on maven central.
If you 're curious, you can try it out by downloading the source and placing it into the ```buildSrc``` directory
of your gradle project.


List of plugins
===============

Grails
------

Applies grails nature to your project by updating the source sets, configure sonar (if available), and adding test and
build tasks. If the project is an grails application (not a plugin), it adds a war task. It includes
[gradle-grails-wrapper](https://github.com/ConnorWGarvey/gradle-grails-wrapper) for the grails-* tasks and automatic
download of the specified grails version.

**Example:**
```
apply plugin: 'cat-grails'
grails {
    version = '2.1.1'
}
```
Now the ```war``` task on every grails application (usually one) builds the war file with the specified grails version.
If you want to test your app before creating the archive, use the ```build``` task.

You can rename (or move) the produced war file(s) by setting the ```grails.project.war.file``` option in your
```BuildConfig.groovy``` or with a simple gradle task, eg.
```
task build(type: Sync, dependsOn: ':your-grails-app:build') {
    from 'your-grails-app/target'
	into 'build'
	include '*.war'
	rename '(.*).war', 'ROOT.war'
}
```

**NOTE: This plugin is currently intended only for multi-project builds.**

LESS
------

Converts your .less files to .css.
You don't have to install the less executable on your machine - this plugin
includes [lesscss-engine](https://github.com/asual/lesscss-engine).

**Example:**
```
apply plugin: 'cat-less'
less {
   sourceFiles = fileTree(dir: 'less', include: '*.less')
   outputDirectory = file('web-app/css')
{'fraction_non_alphanumeric': 0.14424141749723146, 'fraction_numerical': 0.0016611295681063123, 'mean_word_length': 4.368499257057949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '7070492', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1052, 'n_words': 434}