Could not find gradle.plugin.com

plugins

(Tony Robalik) #1

I’m getting the following error when trying to import the following plugin in my Android app:
https://plugins.gradle.org/plugin/com.autonomousapps.cappuccino-animations

Error:Could not find gradle.plugin.com.autonomousapps:cappuccino-plugin:0.8.1.
Searched in the following locations:
file:/home/tony/.local/android-studio/gradle/m2repository/gradle/plugin/com/autonomousapps/cappuccino-plugin/0.8.1/cappuccino-plugin-0.8.1.pom
file:/home/tony/.local/android-studio/gradle/m2repository/gradle/plugin/com/autonomousapps/cappuccino-plugin/0.8.1/cappuccino-plugin-0.8.1.jar

See the rest here (I can’t include more than 10 links in a post): https://hastebin.com/ocoviregiq.rb

I’m following the instructions on the top link, viz, projectroot/build.gradle:

buildscript {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://plugins.gradle.org/m2/' }
        maven { url 'https://maven.google.com' }
        maven { url 'https://jitpack.io' }
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    }
    dependencies {
        // ...other dependencies...
        classpath 'gradle.plugin.com.autonomousapps:cappuccino-plugin:0.8.1'
    }
}

I note that I am the author of this plugin, and successfully used the earlier version

classpath 'gradle.plugin.com.metova:cappuccino-plugin:0.7.3'

I’ve changed its name slightly, since I no longer own ‘metova’.


(Eric Wendelin) #2

It looks like the artifacts for gradle.plugin.com.autonomousapps are not Gradle’s plugin storage at all. The metova ones are through v0.8.

Did you get some sort of error when publishing v0.8.1 with a different group ID? It looks like the plugin version was created and recognized by the system, but somehow the artifacts just aren’t actually there.


(Tom Dunstan) #3

The artifacts being missing can happen if publishing with an older plugin-publish plugin. See PLUGIN AUTHORS: Please use the latest plugin-publish plugin - others may result in a broken upload

Looks like you’re using an old plugin-publish plugin. Upgrading to the latest and publishing a new version should fix the issue. If you’d like us to delete the existing 0.8.1 so that you can republish that, let us know.


(Eric Wendelin) #4

Good call, Tom. I forgot about this. I’m sure you’re right.


(Tony Robalik) #5

Ah, I bet that’s it. I was being lazy and trying to make minimal changes to get my plugin updated (for Gradle 5.0 compatibility reasons). I’ll update the publishing plugin and report back later.


(Tony Robalik) #6

Updating to 0.9.7 has resolved the issue. Thank you!