NullStress / gradle-dependency-analysis-plugin

A gradle dependency analysis plugin.
Apache License 2.0
25 stars 1 forks source link

Error applying plugin. #1

Open MicahZoltu opened 8 years ago

MicahZoltu commented 8 years ago

I get an error when I try to use this plugin.

When I bring it in the old way

buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "com.github.nullstress:DependencyAnalysisPlugin:1.0.3"
    }
}
* What went wrong:
A problem occurred evaluating root project 'cassandra-writer'.
> Plugin with id 'com.github.nullstress.dependency-analysis' not found.

When I bring it in the new way

plugins {
    id "com.github.nullstress.dependency-analysis" version "1.0.3"
}
Could not apply requested plugin [id: 'com.github.nullstress.dependency-analysis', version: '1.0.3'] as it does not provide a plugin with id 'com.github.nullstress.dependency-analysis'. This is caused by an incorrect plugin implementation. Please contact the plugin author(s).
> Plugin with id 'com.github.nullstress.dependency-analysis' not found.
erwa commented 8 years ago

As mentioned in http://stackoverflow.com/questions/19379517/how-to-find-remove-unused-dependencies-in-gradle, you should use

apply plugin: "dependencyAnalysis"
MicahZoltu commented 8 years ago

Thanks for the workaround! Though I would still like to see this issue resolved so I can use the Gradle 2.1+ style: plugins { id "..." version "..." }