<commit_before># Gradle-dependency-analysis-plugin

A gradle dependency analysis plugin inspired by the maven dependency plugin and https://gist.github.com/kellyrob99/4334483.

## Usage:

Download the project and install to maven local repo with: gradle install

Include the following in the top of your project:

```groovy
buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath group: 'org.lund.gradle', name: 'DependencyAnalysisPlugin', version: '1.0.3'
    }
}

apply plugin: 'dependencyAnalysis'
```

## Tasks
### `analyze`
The analyze task is the only task currently provided by this plugin.
It will scan your project and find used and unused artifacts split into declared and transitive dependencies.
The task throws an execption if you have unused declared artifacts (so your CI job will fail).<commit_msg>Deprecating plugin<commit_after># Deprecated

Please use https://github.com/nebula-plugins/gradle-lint-plugin/wiki/Unused-Dependency-Rule

# Gradle-dependency-analysis-plugin

A gradle dependency analysis plugin inspired by the maven dependency plugin and https://gist.github.com/kellyrob99/4334483.

## Usage:

Download the project and install to maven local repo with: gradle install

Include the following in the top of your project:

```groovy
buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
    dependencies {
        classpath group: 'com.github.nullstress', name: 'DependencyAnalysisPlugin', version: '1.0.3'
    }
}

apply plugin: 'dependencyAnalysis'
```

or if you are on gradle 2.1 or newer

```groovy
plugins {
    id com.github.nullstress.DependencyAnalysisPlugin version '1.0.3'
}
```

## Tasks
### `analyze`
The analyze task is the only task currently provided by this plugin.
It will scan your project and find used and unused artifacts split into declared and transitive dependencies.
The task throws an execption if you have unused declared artifacts (so your CI job will fail).
{'fraction_non_alphanumeric': 0.08063713290194126, 'fraction_numerical': 0.01443504230960677, 'mean_word_length': 4.037593984962406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3885490', 'n_tokens_mistral': 586, 'n_tokens_neox': 539, 'n_words': 221}