-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Describe the bug
The documentation for the depclean-gradle-plugin doesn't quite match the reality.
The README says:
Then run the following Maven command to build the application and install the plugin locally:
./gradlew install
First off, running Gradle is not a Maven command :) Secondly, there is no install task. See ./gradlew tasks for a list of tasks available. I noticed two that sounded good, publishPluginMavenPublicationToMavenLocal and publishToMavenLocal so I tried both (better to install one thing too many than one thing too little I figured).
However, then I tried following instructions for using it but I was not able to find the plugin
Plugin [id: 'se.kth.depclean', version: '0.1-SNAPSHOT'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'se.kth.castor.depclean:se.kth.castor.depclean.gradle.plugin:1.0-SNAPSHOT')
Searched in the following repositories:
Gradle Central Plugin Repository
I'm not sure why it didn't list mavenLocal there as I do have mavenLocal() as one of my repositories within the buildscript.
Then I noticed that in my .m2/repository folder was se.kth.**castor**.depclean-gradle-plugin with version **1.0**-SNAPSHOT (all **-emphasis to emphasize the differences from what the instructions say). I tried various combination of these but still no luck.