Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Gradle Plugin: Problems installing #217

Open
Zomis opened this issue Jul 14, 2023 · 0 comments
Open

[BUG] Gradle Plugin: Problems installing #217

Zomis opened this issue Jul 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Zomis
Copy link

Zomis commented Jul 14, 2023

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.

@Zomis Zomis added the bug Something isn't working label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant